Etherscan API client.
- Source:
Classes
Type Definitions
transaction
An Ethereum transaction.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
blockNumber |
string | Containing block number. Integer string. |
timeStamp |
string | Integer string. |
hash |
string | Transaction hash. |
nonce |
string | Transaction nonce. Integer string. |
blockHash |
string | Containing block hash. |
transactionIndex |
string | Index of transaction in containing block. Integer string. |
from |
string | Hex representation of source address. |
to |
string | Hex representation of target address. Empty string for contract creation transactions. |
value |
string | Amount transferred in wei. Integer string. |
gas |
string | Gas limit in gas. Integer string. |
gasPrice |
string | Gas price in wei. Integer string. |
isError |
string | Whether transaction failed with an error. Integer string "1" for error. Integer string "0" for no error. |
input |
string | Transaction data. Hexadecimal string prepended with "0x". For empty data value is "0x". |
contractAddress |
string | Hex representation of created contract address. Empty string for no contract created. |
cumulativeGasUsed |
string | Integer string. |
gasUsed |
string | Gas used by transaction in gas. Integer string. |
confirmations |
string | Current number of containing block confirmations. Integer string. |
- Source:
- To Do:
-
- Determine timeStamp meaning.
- Determine timeStamp encoding.
- Can only contract transactions fail with an error?
- Determine cumulativeGasUsed meaning.