Type alias Trigger

Trigger: {
    amount: bigint;
    chainId: number;
    tokenAddress: Address;
}

Parameters for a token trigger

Type declaration

  • amount: bigint

    Amount of the token to use, in the token's smallest unit

    Example

    1000000n // 1 USDC (6 decimals)
    
  • chainId: number

    The chainId to use

    Example

    1 // Ethereum Mainnet
    
  • tokenAddress: Address

    The address of the token to use on the relevant chain

    Example

    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" // USDC