Subscribe to Blockchain Events
サブスクリプションエンドポイントを使って、さまざまなブロックチェーンイベントをリアルタイムで購読できます。フィルターを利用して、特定のコントラクトアドレスやアカウントアドレス、トークンIDなどを監視できます。Subscribing to Events
Sequence IndexerSubscribeEvents Method:
- Request:
POST /rpc/Indexer/SubscribeEvents - Content-Type:
application/json - ボディ(JSON形式):
Filters([]object) — an array of filterscontractAddresses([]string) — a ERC20 / ERC721 / ERC1155 contract addressaccounts([]string) — wallet addressestokenIDs([]int) optional — an array of token idsevents([]string) — an array of event namestopicHashes([]string) — an array of topic hashes
contractAddresses, accounts must be provided in the filter.
Subscribing to Balance Updates
Sequence IndexerSubscribeBalanceUpdates Method:
Subscribing to Receipts
Sequence IndexerSubscribeBalanceUpdates Method:
Example SubscribeEvents