Skip to content
Docs

Events and payloads

Event types

Coin, token, and NFT transfers, approvals, swaps, DeFi actions, and other contract calls.

Overview

A single transaction can produce several events. A swap, for example, sends a swap event for the call plus a token_transfer for each token that left or entered the wallet.

typeWhen it is sentUseful data fields
native_transferThe chain's own coin (ETH, POL, BNB, and so on) moved directly from one address to another in a transaction.from, to, amountRaw
token_transferA fungible token (ERC-20) moved to or from the address, including mints and burns.token, from, to, amountRaw, verified
nft_transferAn NFT (ERC-721 or ERC-1155) moved to or from the address. Batch transfers produce one event per token.token, tokenId, from, to, amountRaw
approvalThe address gave or changed permission for a spender: a token allowance, a single NFT approval, or approval for a whole collection.token, from (owner), to (spender), amountRaw or tokenId
swapThe address called a contract and a known swap happened, for example on a DEX pool.from, to (contract)
defiThe address called a contract and a known lending or liquidity action happened, such as supply, borrow, repay, or adding liquidity.from, to (contract)
contract_interactionThe address called any other contract.from, to (contract)

Who triggers call events

swap, defi, and contract_interaction are about the transaction itself, so they are sent only when the watched address sent the transaction or is the contract it called. Transfers and approvals are sent whenever the watched address appears in them, no matter who sent the transaction.

Choosing types per address

By default an address receives every type its network sends. Pass categories when you add the address to limit it, for example ["native_transfer", "token_transfer"] for a deposit wallet. Asking for a type the network does not send is a 400.

Bitcoin-family networks

Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, DigiByte, and Ravencoin send only native_transfer. A transaction spends earlier outputs and creates new ones, so Gray3 sends one message per watched address per transaction, based on how much that address's balance changed:

directionWhenfrom / toamountRaw
inThe balance went up.from: the first other address that paid in (coinbase for a mining reward). to: the watched address.The increase.
outThe balance went down.from: the watched address. to: the first other address paid.The decrease: what was sent plus the fee this address paid. Change sent back to the address is already subtracted.
selfEvery output went back to the address.Both are the watched address.The fee.

amountRaw is in the coin's smallest unit, such as satoshis on Bitcoin. When two watched addresses take part in one transaction, each gets its own message with its own id. There is no logIndex, token, or verified field.

Solana

Solana sends native_transfer, token_transfer, and nft_transfer. Like Bitcoin-family networks, each message is about one watched address and comes from how its balance changed in the transaction:

  • SOL (native_transfer, in lamports). For in, from is the account that paid the most. For out, to is the account that received the most, and the amount includes the fee if the address paid it. A transaction that only cost the address its fee sends nothing.
  • Tokens. Everything the address owns of one token is added together, across all its token accounts. token is the mint, and the other side is the owner whose balance of that token moved the most the other way. Token-2022 tokens are included. One unit of a token with 0 decimals is sent as nft_transfer.

Register the wallet address, not its token accounts. Failed and vote transactions send nothing.

Tron

Tron sends native_transfer, token_transfer, and nft_transfer. Like EVM networks, a transfer is sent to both sides when both are watched:

TypeWhat
native_transferTRX sent directly or with a contract call, in sun (1 TRX = 1,000,000 sun).
token_transferTRC-20 transfers such as USDT (token: the contract, in T… form). TRC-10 tokens are not supported.
nft_transferTRC-721 transfers, with tokenId.

Sui, Aptos, and Movement

Sui, Aptos, Movement, and their testnets send native_transfer and token_transfer. Like Solana, each message is about one watched address and comes from how its balance of one coin changed in the transaction:

  • SUI, APT, MOVE (native_transfer, in the coin's smallest unit). On Sui an outgoing amount includes the gas the address paid, and a transaction that only cost the address its gas sends nothing. On Aptos and Movement gas is never included.
  • Tokens. token is the coin type (0x…::module::NAME) or, for Aptos fungible assets, the asset's address. The other side is the address whose balance of that token moved the most the other way, or the transaction's sender when there is none.

These networks are final as soon as a transaction is in the chain, so each event is sent once, as confirmed. On Sui blockNumber is the checkpoint.

XRP Ledger and Stellar

XRPL and Stellar send native_transfer and token_transfer. Like EVM networks, a transfer is sent to both sides when both are watched. Ledgers are final once closed, so each event is sent once, as confirmed, and blockNumber is the ledger number. Fees are never included.

NetworkWhat is sent
XRPLPayments and account deletions, with the amount actually delivered. XRP is in drops (1 XRP = 1,000,000 drops). Issued tokens have token = currency.issuer and amountRaw = the value × 10^15; MPTs have token = the issuance ID.
StellarPayments, path payments (the amount received), account creation, and token transfers inside smart-contract calls. XLM and tokens are in stroops (7 decimals); token = CODE:ISSUER.

Register the classic r… address on XRPL and the G… account on Stellar. Payments to oneself are not sent.

NEAR and TON

Like EVM networks, a transfer is sent to both sides when both are watched. Blocks are final within seconds, so each event is sent once, as confirmed. Fees are never included, and transfers to oneself are not sent.

NetworkWhat is sent
NEARnative_transfer for NEAR sent by an account (in yoctoNEAR, 10^-24), token_transfer for NEP-141 tokens (token = the token contract), and nft_transfer for NEP-171 NFTs. txHash is the original transaction; one transaction can produce events in several blocks.
TONnative_transfer for TON (in nanotons, 10^-9) and token_transfer for jettons (token = the jetton master, in raw 0:… form). blockNumber is the masterchain block. Events arrive about 10 seconds after the block.

Register a NEAR account such as name.near (or a 64-character implicit account). On TON, register the EQ… / UQ… address or the raw 0:… form; messages always use the raw form with uppercase hex.

NEAR events usually arrive 20 to 60 seconds after the transaction.

Hedera, Algorand, and VeChain

Fees are never included, and transfers to oneself are not sent. Hedera and Algorand are final at once, so each event is sent once, as confirmed. VeChain sends seen at the tip and confirmed 12 blocks (about 2 minutes) later.

NetworkWhat is sent
Hederanative_transfer for HBAR (in tinybars, 10^-8) and token_transfer for HTS tokens (token = the 0.0.N token id), one per account and asset per transaction, with subject set, like Sui. nft_transfer for each NFT serial (tokenId = the serial). Staking rewards are not sent.
Algorandnative_transfer for ALGO (in microalgos, 10^-6) and token_transfer for Algorand Standard Assets (token = the asset id), including inner transactions and account or asset closes. Like EVM, a transfer is sent to both sides when both are watched.
VeChainnative_transfer for VET (in wei, 10^-18), token_transfer for VIP-180 tokens including VTHO, and nft_transfer for VIP-181 NFTs (token = the contract). Like EVM, a transfer is sent to both sides when both are watched.

Register a Hedera account as 0.0.N (a checksum suffix is accepted; EVM-style 0x aliases are not), the 58-character Algorand address, or a VeChain 0x address (stored lowercase).

Polkadot, Bittensor, Stacks, and Cardano

Fees are never included, and transfers to oneself are not sent. Polkadot and Bittensor send events once their block is finalized (about 15 to 40 seconds), so each is sent once, as confirmed. Stacks sends seen at the tip and confirmed 3 blocks later; Cardano 10 blocks (about 3 minutes) later.

NetworkWhat is sent
Polkadotnative_transfer for DOT (in Planck, 10^-10) and token_transfer for Asset Hub assets such as USDT and USDC (token = the asset id). DOT accounts live on Polkadot Asset Hub, which is what is followed. Like EVM, a transfer is sent to both sides when both are watched.
Bittensornative_transfer for TAO (in rao, 10^-9), including TAO moved by staking. Bittensor has no standard token, so no token_transfer.
Stacksnative_transfer for STX (in micro-STX, 10^-6) and token_transfer for SIP-010 tokens (token = contract::token). Token transfers are sent for calls the watched address sends, or that name it as an argument (such as a SIP-010 transfer to it).
Cardanonative_transfer for ADA (in lovelace, 10^-6) and token_transfer for native assets (token = policy id + asset name in hex), one per address and asset per transaction, with subject set, like Bitcoin-family networks.

Register an SS58 address on Polkadot and Bittensor (any SS58 format, or the 0x public key; stored in the network's own format, 1… on Polkadot and 5… on Bittensor), an SP… / SM… principal on Stacks (a .contract-name suffix is allowed), or an addr1… payment address on Cardano (stake addresses are not accepted).

Not covered

  • Coins sent by a contract (internal transfers), for example ETH paid out by a contract during a withdrawal. The token transfers in the same transaction are still sent.
  • Failed transactions. Reverted transactions produce no events.
  • Pending transactions that are not yet in a block, on every network.
  • Tokens on Bitcoin-family networks, such as Ravencoin assets or Bitcoin Ordinals. The coin amounts in those transactions are still sent.
  • Approvals, swaps, DeFi, and contract calls on Solana and Tron. The transfers inside them are still sent. On Tron, TRX paid out by a contract is not sent either.
  • Compressed NFTs on Solana.
  • NFTs and other objects on Sui, Aptos, and Movement. Only coin and token balances are tracked.
  • XRPL destination tags, checks, escrows, payment channels, AMM and DEX trades, and NFTs; Stellar account merges and DEX trades. Messages do not carry the destination tag or memo.
  • Failed and refunded transfers on NEAR, NFTs on TON, and comments on TON transfers.
  • Hedera staking rewards and memos, and Algorand notes.
  • Polkadot foreign (bridged) assets and NFTs; Stacks NFTs, mints, burns, and tokens sent by a call that does not name the watched address; Cardano staking rewards.