Skip to main content

EthereumTransactionInput

No description

input EthereumTransactionInput {
to: String!
assetSymbol: String
value: String!
speed: TransactionSpeed
gasLimit: String
gasPrice: String
fromAddress: String!
nonce: Int
chainId: Int
data: String
}

Fields

EthereumTransactionInput.to ● String! non-null scalar

The address this transaction is directed to OR the ERC20 token recipient

EthereumTransactionInput.assetSymbol ● String scalar

This TrustVault supported asset you are trying to send. For Ether set this to ETH for ERC20 token, set this to the TrustVault token symbol. (See docs for supported tokens)

EthereumTransactionInput.value ● String! non-null scalar

For ETH, the value of ETH to send with this transaction in WEI, for ERC20, the value in base unit. e.g. for a token with 6 decimal places, to send 1 token specify 1000000

EthereumTransactionInput.speed ● TransactionSpeed enum

The speed at which you want the network to accept the transaction. This a dynamic value for the gasPrice and helps determine the fee. The fee is charged by the network in ETH. This value is included in the total amount of the transaction. Defaults to MEDIUM (either speed or gasLimit + gasPrice must be given)

EthereumTransactionInput.gasLimit ● String scalar

Int (as String) of the gas provided for the transaction execution (either speed or gasLimit + gasPrice must be given)

EthereumTransactionInput.gasPrice ● String scalar

Int (as String) of the gasPrice used for each paid gas (either speed or gasLimit + gasPrice must be given)

EthereumTransactionInput.fromAddress ● String! non-null scalar

The address the transaction is sent from (This must be owned by the user whose authentication tokens you are using)

EthereumTransactionInput.nonce ● Int scalar

The number of transactions made by the sender prior to this one (will be calculated automatically if not given)

EthereumTransactionInput.chainId ● Int scalar

The chainId e.g. 1 for mainnet or 17000 for Holesky (will be calculated automatically if not given)

EthereumTransactionInput.data ● String scalar

The compiled code of a contract OR the hash of the invoked method signature and encoded parameters (will be calculated automatically if not given)

Member Of

CreateEthereumTransactionInput input