Transaction Builder
By default, all transactions initiated using the SDK perform every step of the process for a transaction; From preparing and building the transaction all the way to waiting until it has been mined, and the data is available to be read from the blockchain.
To gain more granular control over the transaction process, all Contract objects come with a Prepare function that returns a Transaction object, which can be used to build, fine-tune, and execute the transaction.
Usage
EstimateGasCost
Estimate the gas cost for a transaction.
EstimateGasLimit
Estimate the gas limit for a transaction.
Send
Send the transaction without waiting for it to be mined. This is useful for when you want the transaction to be executed, but don’t need the data returned.
Execute
Send the transaction and wait for it to be mined. This is useful for when you want the transaction to be executed, and need the data returned.
Static Methods
Useful static methods for working with transactions.