Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
- Overview
- Installation
- Endpoints
- public
- POSTGetNativeTokenBalance
- POSTGetTokenBalancesSummary
- POSTGetTokenBalancesDetails
- POSTGetTokenBalancesByContract
- POSTGetTokenBalances
- POSTGetTokenSupplies
- POSTGetTokenSuppliesMap
- POSTGetBalanceUpdates
- POSTGetTransactionHistory
- POSTFetchTransactionReceipt
- POSTFetchTransactionReceiptWithFilter
- POSTSubscribeReceipts
- POSTSubscribeEvents
- POSTSubscribeBalanceUpdates
- POST
- secret
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
public
GetBalanceUpdates
Get balance update aggregate values — useful for syncing balance details of a contract, ie. from Skyweaver
POST
/
rpc
/
Indexer
/
GetBalanceUpdates
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetBalanceUpdates \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"lastBlockNumber": 0
}'
{
"page": {
"pageSize": 200,
"more": false
},
"balances": [
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xc48835421ce2651bc5f78ee59d1e10244753c7fc",
"tokenID": "0",
"balance": "8",
"blockHash": "0x4db688b03de5804dd6e916ebafbc687aa3196c99288fbc63698e92c855400ff3",
"blockNumber": 20126805,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "",
"tokenID": "0",
"balance": "9",
"blockHash": "0xd5e2e041f9d292b25076a512e198d183a55d21440be15e9869c0b1b7d9b179f5",
"blockNumber": 20363254,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0x0000000000000000000000000000000000000000",
"tokenID": "0",
"balance": "-9",
"blockHash": "0xd5e2e041f9d292b25076a512e198d183a55d21440be15e9869c0b1b7d9b179f5",
"blockNumber": 20363254,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xbabebe9fe973a5735d486bf6d31e9a027248024e",
"tokenID": "0",
"balance": "1",
"blockHash": "0x080ea6171f82705555cd1248f73ce1d61dbcbd68f5eefab44b64dec2293a695f",
"blockNumber": 20692108,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenID": "0",
"balance": "0",
"blockHash": "0x080ea6171f82705555cd1248f73ce1d61dbcbd68f5eefab44b64dec2293a695f",
"blockNumber": 20692108,
"chainId": 1
}
]
}
Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Body
application/json
Response
200
application/json
OK
[]TokenBalance
Represented as uint8 on the server side
Available options:
UNKNOWN
, NATIVE
, ERC20
, ERC721
, ERC1155
, SEQUENCE_WALLET
, ERC20_BRIDGE
, ERC721_BRIDGE
, ERC1155_BRIDGE
, SEQ_MARKETPLACE
map<string,any>
[]Asset
Was this page helpful?
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetBalanceUpdates \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"lastBlockNumber": 0
}'
{
"page": {
"pageSize": 200,
"more": false
},
"balances": [
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xc48835421ce2651bc5f78ee59d1e10244753c7fc",
"tokenID": "0",
"balance": "8",
"blockHash": "0x4db688b03de5804dd6e916ebafbc687aa3196c99288fbc63698e92c855400ff3",
"blockNumber": 20126805,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "",
"tokenID": "0",
"balance": "9",
"blockHash": "0xd5e2e041f9d292b25076a512e198d183a55d21440be15e9869c0b1b7d9b179f5",
"blockNumber": 20363254,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0x0000000000000000000000000000000000000000",
"tokenID": "0",
"balance": "-9",
"blockHash": "0xd5e2e041f9d292b25076a512e198d183a55d21440be15e9869c0b1b7d9b179f5",
"blockNumber": 20363254,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xbabebe9fe973a5735d486bf6d31e9a027248024e",
"tokenID": "0",
"balance": "1",
"blockHash": "0x080ea6171f82705555cd1248f73ce1d61dbcbd68f5eefab44b64dec2293a695f",
"blockNumber": 20692108,
"chainId": 1
},
{
"contractType": "ERC1155",
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9",
"accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenID": "0",
"balance": "0",
"blockHash": "0x080ea6171f82705555cd1248f73ce1d61dbcbd68f5eefab44b64dec2293a695f",
"blockNumber": 20692108,
"chainId": 1
}
]
}