UAX
  • Welcome to UAXNETWORK
  • Getting Started
    • Quickstart
    • Why Uaxnetwork?
    • Running A Node
      • Overview
      • Installation
      • Machine ID
      • Staking
      • Node Configuration
      • Start mining
      • Node Troubleshooting
    • JSON-API
      • getBalance
      • getlastBlock
      • Last50Blocks
      • getTotalTransaction
      • GetTransactionDetailsByTxnId
      • getBlockDetailsByHash
      • getBlockDetailsByNumber
      • GetPendingTransaction
      • sendTransaction
      • estimateBandwidth
      • getBlockByHash
      • getBlockByNumber
      • getTransactionByHash
      • GetBalanceAndBandwidth
      • GetTotalAddress
      • AvailableBandwidth
      • UAXNPRICE
    • Consensus Protocol
      • Overview
      • Reward System
    • Artificial Intelligence Smart Integrations (AISI)
  • Links
    • White paper
Powered by GitBook
On this page
  1. Getting Started
  2. JSON-API

getBlockByNumber

POST get_Block_ByNumber

curl -X POST http://localhost:8491 \
-H "Content-Type: application/json" \
-d '{
    "jsonrpc": "2.0",
    "method": "uaxn_get_block_by_number",
    "params": {
        "BlockNumber": 2298
    },
    "id": 1
}'
{
  "jsonrpc": "2.0",
  "result": {
    "index": 2298,
    "timestamp": 1743872644860,
    "transactions": [
      {
        "amount": 2.31970453652968,
        "sender": "EfDz4LTNHAlh.uaxn",
        "remark": "UAXN",
        "recipient": "m2d2Opwa1ZNe.uaxn",
        "transactionId": "f9043ed0123f11f0a13edb74378cabc2",
        "timestamp": 1743872641853
      }
    ],
    "nonce": 133493,
    "hash": "0000750b5618485ba54eb0822cfb05ef693863f7228a6fe16924804f2ada03b4",
    "peerID": "miner_one",
    "previousBlockHash": "0000ef977654c74e190c8282fb8aeba41213c517dbbdbb20de690989f8725bf2"
  },
  "id": 1
}%
PreviousgetBlockByHashNextgetTransactionByHash

Last updated 17 days ago