onchain_activity
Time-windowed on-chain activity. scope=chain/address returns the transaction COUNT over the last hours (max 720h = 30 days; for longer windows use chain_stats series or onchain_query day-based ops) plus a recent sample. For a token/contract use scope=token (transfers). scope=primary covers P/X-chain and DEFAULTS to P-Chain when no blockchainId is given (so "last N P-chain transactions" just works). A value with no scope defaults to address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed | No | transactions (default) | transfers | erc20Transfers | nftTransfers | |
| hours | No | Look-back window in hours for EVM transaction feeds (default: 2 for chain, max 720) | |
| scope | Yes | address | chain | token | contract | primary | |
| value | No | Address/contract/token (omit for scope=chain) | |
| chainId | No | EVM chain ID (default: C-Chain for the network) | |
| network | No | Network (default: mainnet) | |
| pageSize | No | Max rows (default: 25) | |
| toTimestamp | No | Unix end time (scope=primary) | |
| blockchainId | No | Blockchain ID for scope=primary (default: P-Chain) | |
| fromTimestamp | No | Unix start time (scope=primary) |