View Source Icon.Schema.Types.Transaction (ICON 2.0 SDK v0.2.3)
This module defines a transaction.
A transaction has the following keys:
Key | Type | Description |
---|---|---|
blockHash | Icon.Schema.Types.Hash.t() | Hash of the block that includes the transaction. |
blockHeight | Icon.Schema.Types.Integer.t() | Height of the block that includes the transaction. |
data | Depends on dataType . | Data of the transaction. |
dataType | Either message , :call , :deploy or :deposit | Data type of the transaction. |
from | Icon.Schema.Types.EOA.t() | EOA address that sent the transaction. |
nid | Icon.Schema.Types.Integer.t() | Network ID (see Icon.RPC.Identity for more information). |
nonce | Icon.Schema.Types.Integer.t() | An arbitrary number used to prevent transaction hash collision. |
signature | Icon.Schema.Types.Signature.t() | Signature of the transaction. |
stepLimit | Icon.Schema.Types.Loop.t() | Maximum step allowance that can be used by the transaction. |
timestamp | Icon.Schema.Types.Timestamp.t() | Transaction creation time. Timestamp is in microsecond. |
to | Icon.Schema.Types.Address.t() | EOA address to receive coins, or SCORE address to execute the transaction. |
txHash | Icon.Schema.Types.Hash.t() | Transaction hash. |
txIndex | Icon.Schema.Types.Integer.t() | Transaction index in a block. nil when it is pending. |
value | Icon.Schema.Types.Loop.t() | Amount of ICX coins in loop to transfer. When omitted, assumes 0. (1 ICX = 1¹⁸ loop). |
version | Icon.Schema.Types.Integer.t() | Protocol version. |