메인 콘텐츠로 건너뛰기
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
Returns the address that would result from a CREATE for tx. This can be used to compute the address a contract will be deployed to by an EOA when sending a deployment transaction (i.e. when the to address is null). This can also be used to compute the address a contract will be deployed to by a contract, by using the contract’s address as the to and the contract’s nonce.

Parameters

ParameterTypeDescription
txobjectThe transaction object.
tx.datanull | stringThe data of the transaction.
tx.fromstringThe address of the sender.
tx.nonceBigNumberishThe nonce of the sender.

Returns

string

Example

Source

address/contract-address.ts:34