Skip to content

createContractAddress

createContractAddress(from, nonce): Address

Generates an Address for a newly created contract.

Parameters

from: EthjsAddress

The address of the account creating the contract.

nonce: bigint

The nonce of the account creating the contract.

Returns

Address

The generated contract address.

Throws

If the ‘from’ parameter is not a valid EthjsAddress.

See

Contract Creation

Defined in

packages/address/src/createContractAddress.js:15