Addresses

Read the native balance, nonce and bytecode from the execution node at the indexed block. This endpoint requires the node to be online.

GET/addresses/{address}

Parameters

addressPath · required
Q followed by 128 hexadecimal characters. Use the complete address including its prefix.

Request · cURL

curl -fsS 'https://api.qlattice.xyz/dev/v1/addresses/Q75b4900c2F4a5A5718028B7c7A6D73245797c4Bba36C00a64d368443e623B5bd130e968A4443D82bE125e3E7c3753b574937fcd01ddaB7e4A0871246b303Cab2'

Example response

{
  "address": "Q75b4900c2F4a5A5718028B7c7A6D73245797c4Bba36C00a64d368443e623B5bd130e968A4443D82bE125e3E7c3753b574937fcd01ddaB7e4A0871246b303Cab2",
  "block": 18,
  "balance": "0xd3c0f4e70f499bd707c3",
  "nonce": "0x5",
  "code": "0x"
}

Response fields

addressString
The requested address.
blockInteger
Decimal block height at which all three account reads were performed.
balanceHex quantity
Native balance in base units. One devnet test unit equals 10¹⁸ base units.
nonceHex quantity
Account nonce at that height.
codeHex data
Deployed QRVM runtime. An account with no code returns 0x. A valid unused address can return zero balance and nonce.