Contract interactions — contract_interactions
Subscribe to the contract_interactions channel (EVM only) to receive a contract_interaction event each time the address interacts with a contract it has not interacted with before.
Subscribe
{ "action": "subscribe", "channel": "contract_interactions", "address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0" }
Event
{
"type": "contract_interaction",
"data": {
"address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
"contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"height": 19234567
}
}
| Field | Type | Description |
|---|---|---|
type | string | Always "contract_interaction". |
data.address | string | The subscribed address. |
data.contract | string | The contract the address interacted with. |
data.height | integer | Block height where the interaction happened. |