Avalanche · Schema

NativeTransaction

BlockchainWeb3AvalancheNFTDeFiCross-Chain

Properties

Name Type Description
blockNumber string The block number on the chain.
blockTimestamp number The block creation (proposal) timestamp in seconds
blockTimestampMilliseconds number The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
blockMinDelayExcess number Minimum block delay in milliseconds. Available only after Granite upgrade.
blockHash string The block hash identifier.
chainId string The EVM chain ID on which the transaction occured.
blockIndex number The index at which the transaction occured in the block (0-indexed).
txHash string The transaction hash identifier.
txStatus string The transaction status, which is either 0 (failed) or 1 (successful).
txType number The transaction type.
gasLimit string The gas limit set for the transaction.
gasUsed string The amount of gas used.
gasPrice string The gas price denominated by the number of decimals of the native token.
nonce string The nonce used by the sender of the transaction.
from object
to object
method object
value string
View JSON Schema on GitHub

JSON Schema

NativeTransaction.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/NativeTransaction.json",
  "title": "NativeTransaction",
  "type": "object",
  "properties": {
    "blockNumber": {
      "type": "string",
      "description": "The block number on the chain.",
      "examples": [
        "339"
      ]
    },
    "blockTimestamp": {
      "type": "number",
      "description": "The block creation (proposal) timestamp in seconds",
      "examples": [
        1648672486
      ]
    },
    "blockTimestampMilliseconds": {
      "type": "number",
      "description": "The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.",
      "examples": [
        1648672486000
      ]
    },
    "blockMinDelayExcess": {
      "type": "number",
      "description": "Minimum block delay in milliseconds. Available only after Granite upgrade.",
      "examples": [
        7477290
      ]
    },
    "blockHash": {
      "type": "string",
      "description": "The block hash identifier.",
      "examples": [
        "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c"
      ]
    },
    "chainId": {
      "type": "string",
      "description": "The EVM chain ID on which the transaction occured.",
      "examples": [
        "43114"
      ]
    },
    "blockIndex": {
      "type": "number",
      "description": "The index at which the transaction occured in the block (0-indexed).",
      "examples": [
        0
      ]
    },
    "txHash": {
      "type": "string",
      "description": "The transaction hash identifier.",
      "examples": [
        "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4"
      ]
    },
    "txStatus": {
      "type": "string",
      "description": "The transaction status, which is either 0 (failed) or 1 (successful).",
      "examples": [
        "1"
      ]
    },
    "txType": {
      "type": "number",
      "description": "The transaction type.",
      "examples": [
        1
      ]
    },
    "gasLimit": {
      "type": "string",
      "description": "The gas limit set for the transaction.",
      "examples": [
        "51373"
      ]
    },
    "gasUsed": {
      "type": "string",
      "description": "The amount of gas used.",
      "examples": [
        "51373"
      ]
    },
    "gasPrice": {
      "type": "string",
      "description": "The gas price denominated by the number of decimals of the native token.",
      "examples": [
        "470000000000"
      ]
    },
    "nonce": {
      "type": "string",
      "description": "The nonce used by the sender of the transaction.",
      "examples": [
        "1"
      ]
    },
    "from": {
      "$ref": "#/components/schemas/RichAddress"
    },
    "to": {
      "$ref": "#/components/schemas/RichAddress"
    },
    "method": {
      "$ref": "#/components/schemas/Method"
    },
    "value": {
      "type": "string",
      "examples": [
        "10000000000000000000"
      ]
    }
  },
  "required": [
    "blockNumber",
    "blockTimestamp",
    "blockHash",
    "chainId",
    "blockIndex",
    "txHash",
    "txStatus",
    "txType",
    "gasLimit",
    "gasUsed",
    "gasPrice",
    "nonce",
    "from",
    "to",
    "value"
  ]
}