Skip to main content Link Menu Expand (external link) Document Search Copy Copied

EthEstimateGas

Model getters

Method name Return type Description Notes
getFrom() string Sender address.
Example: 0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef
 
getTo() string Blockchain address to send assets
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getContractAddress() string Contract address of ERC20 token, if transaction is ERC20 token
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
[optional]
getAmount() string Amount to be sent in Ether or ERC20.
Example: 100000
 
getData() string Additional data that can be passed to a blockchain transaction as a data property; must be in the hexadecimal format
Example: 4d79206e6f746520746f2074686520726563697069656e74
[optional]