Skip to main content

Parameters

chainId
string
default:"14"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getAssetBalance"
required
JSON-RPC method name.
params
object
required
Parameters: [address, blk, assetID]Positional parameters for eth_getAssetBalance:
  • params[0]: The address of the asset owner.
  • params[1]: Block identifier: block number or block hash (hex or tag).
  • params[2]: The asset ID for which the balance is requested.

Returns

result
string
Hexadecimal string representing the asset balance. Example: “0x16345785d8a0000”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=14 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getAssetBalance",
    "params": [
      "0x8D97689C9818892B700e27F316cc3E41e17fBeb9",
      "latest",
      "0xf20d962a6c8f70c731bd838a3a388d7d48fa6e15"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x16345785d8a0000"
}