Const
Builds a clause for deploying a smart contract.
The bytecode of the smart contract to be deployed.
Optional
deployParams: DeployParamsThe parameters to pass to the smart contract constructor.
A clause for deploying a smart contract.
Builds a clause for interacting with a smart contract function.
The address of the smart contract.
The function fragment to interact with.
The input data for the function.
The amount of VET to send with the transaction.
A clause for interacting with a smart contract function.
Will throw an error if an error occurs while encoding the function input.
Transfers a specified NFT (Non-Fungible Token) from one address to another.
This function prepares a transaction clause for transferring an NFT, based on the ERC721 standard, by invoking a smart contract's 'transferFrom' method.
The address of the NFT contract.
The address of the current owner (sender) of the NFT.
The address of the new owner (recipient) of the NFT.
The unique identifier of the NFT to be transferred.
.
Builds a clause for transferring VIP180 tokens.
The address of the VIP180 token.
The address of the recipient.
The amount of tokens to transfer in the decimals of the token. For instance, a token with 18 decimals, 1 token would be 1000000000000000000 (i.e., 10 ** 18).
A clause for transferring VIP180 tokens.
Will throw an error if the amount is not an integer or if the encoding of the function input fails.
Builds a clause for transferring VET.
The address of the recipient.
The amount of VET to transfer in wei.
A clause for transferring VET.
Will throw an error if the amount is not an integer.
clauseBuilder provides methods for building clauses for interacting with smart contracts or deploying smart contracts.