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

XdcTx

Model getters

Method name Return type Description Notes
getHash() string Hash of the transaction.
Example: 0xe6e7340394958674cdf8606936d292f565e4ecc476aaa8b258ec8a141f7c75d7
[optional]
getNonce() float The number of transactions made by the sender prior to this one.
Example: 26836405
[optional]
getBlockHash() string Hash of the block where this transaction was in.
Example: 0xcf2c40f475e78c7c19778e1ae999a0e371c9319b38182ea15dc94536f13f9137
[optional]
getBlockNumber() float Block number where this transaction was in.
Example: 6470854
[optional]
getTransactionIndex() float Integer of the transactions index position in the block.
Example: 3
[optional]
getFrom() string Address of the sender.
Example: 0x81b7E08F65Bdf5648606c89998A9CC8164397647
[optional]
getTo() string Address of the receiver. ‘null’ when its a contract creation transaction.
Example: 0xbC546fa1716Ed886967cf73f40e8F2F5e623a92d
[optional]
getValue() string Value transferred in wei.
Example: 1000000000000000000
[optional]
getGas() float Gas provided by the sender.
Example: 21000
[optional]
getGasPrice() string Gas price provided by the sender in wei.
Example: 1000000000
[optional]
getInput() string The data sent along with the transaction.
Example: 0x
[optional]
getStatus() bool TRUE if the transaction was successful, FALSE, if the EVM reverted the transaction.
Example: true
[optional]
getGasUsed() float The amount of gas used by this specific transaction alone.
Example: 21000
[optional]
getCumulativeGasUsed() float The total amount of gas used when this transaction was executed in the block.
Example: 314159
[optional]
getContractAddress() string The contract address created, if the transaction was a contract creation, otherwise null.
Example: 0x81b7E08F65Bdf5648606c89998A9CC8164397647
[optional]
getLogs() \Tatum\Model\KlaytnTxLogsInner[] Log events, that happened in this transaction.
Example: null
[optional]
getLogsBloom() string Bloom filter for light clients to quickly retrieve related logs.
Example: null
[optional]
getRoot() string 32 bytes of post-transaction stateroot (pre Byzantium)
Example: null
[optional]