EOS - Chain API & Trace API URLs

πŸ“˜

Tatum EOS Endpoints reference

Chain API Examples

get_account

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/get_account' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
    "account_name": "string"
}'

get_block

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/get_block' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
    "block_num_or_id": "string"
}'

get_block_info

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/get_block_info' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
    "block_num": 0
}'

get_info

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/get_info' \
--header 'x-api-key: {YOUR_API_KEY}'

push_transaction

curl --location --request GET 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/push_transaction' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
    "signatures": [
        "string"
    ],
    "compression": true,
    "packed_context_free_data": "string",
    "packed_trx": "string"
}'

send_transaction

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/send_transaction' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
    "signatures": [
        "string"
    ],
    "compression": true,
    "packed_context_free_data": "string",
    "packed_trx": "string"
}'

push_transactions

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/chain/push_transactions' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '[
  {
    "expiration": "string",
    "ref_block_num": 0,
    "ref_block_prefix": 0,
    "max_net_usage_words": "string",
    "max_cpu_usage_ms": "string",
    "delay_sec": 0,
    "context_free_actions": [
      {
        "account": "string",
        "name": "string",
        "authorization": [
          {
            "actor": "string",
            "permission": "string"
          }
        ],
        "data": {},
        "hex_data": "string"
      }
    ],
    "actions": [
      {
        "account": "string",
        "name": "string",
        "authorization": [
          {
            "actor": "string",
            "permission": "string"
          }
        ],
        "data": {},
        "hex_data": "string"
      }
    ],
    "transaction_extensions": [
      [
        0
      ]
    ]
  }
]'

Trace API Examples

get_block

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/trace_api/get_block' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{

    "block_num": "integer"
}'

get_transaction_trace

curl --location 'https://api.tatum.io/v3/blockchain/node/eos-mainnet/v1/trace_api/get_transaction_trace' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{

    "id": "integer"
}'