Skip to main content

TypeScript shape

interface TokenTransferEventWebhookConditionInput {
  tokenAddress?: StringEqualsConditionInput | null;
  networkId?: OneOfNumberConditionInput | null;
  address?: StringEqualsConditionInput | null;
  direction?: OneOfTokenTransferDirectionConditionInput | null;
}
At least networkId is required (the create call rejects with BAD_USER_INPUT if conditions.networkId is missing).
networkId
OneOfNumberConditionInput
Match one of several network ids. See OneOfNumberConditionInput.
tokenAddress
StringEqualsConditionInput
Token contract address. See StringEqualsConditionInput.
address
StringEqualsConditionInput
Wallet address (sender or recipient depending on direction). See StringEqualsConditionInput.
direction
OneOfTokenTransferDirectionConditionInput
Direction of the transfer (FROM / TO). See OneOfTokenTransferDirectionConditionInput.