createContractAddress
Callable
Parameters
from: string
The sender’s Ethereum Address, from which the contract will be deployed.
nonce: Numbers
The transaction count (or Numbers) of the sender account at the time of contract creation. You can get it here: https://docs.web3js.org/api/web3/class/Web3Eth#getTransactionCount.
Returns string
An Ethereum Address of the contract in checksum address format.
Generates the Ethereum address of a contract created via a regular transaction.
This function calculates the contract address based on the sender's address and nonce, following Ethereum's address generation rules.
An InvalidAddressError if the provided address ('from') is invalid.
An InvalidNumberError if the provided nonce value is not in a valid format.