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

getlastBlock

POST getlastBlock

curl -X POST http://localhost:8491 \
-H "Content-Type: application/json" \
-d '{ 
  "jsonrpc": "2.0", 
  "method": "uaxn_last_block" 
}'
{
  "jsonrpc": "2.0",
  "result": {
    "index": 2797,
    "timestamp": 1745686806493,
    "transactions": [
      {
        "amount": 2.31970453652968,
        "sender": "EfDz4LTNHAlh.uaxn",
        "remark": "UAXN",
        "recipient": "m2d2Opwa1ZNe.uaxn",
        "transactionId": "e536d80022bf11f0a127afb04c86f15a",
        "timestamp": 1745686802816
      }
    ],
    "nonce": 14797,
    "hash": "0000ca03434a47b502a4b1417c2aaf685f1d7461e3a671d17124d56ba0538ea3",
    "peerID": "miner_one",
    "previousBlockHash": "0000e39f368c7ecdf1343caefdd19adebd7a9ea4e9d0b7c68c89216b22fcdb82"
  },
  "id": 0
}%
PreviousgetBalanceNextLast50Blocks

Last updated 17 days ago