Type Alias TokenParams

TokenParams: {
    amount: bigint | RuntimeValue;
    chainId: number;
    tokenAddress: Address;
}

Parameters for a token builders

Type declaration

  • amount: bigint | RuntimeValue

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

    1000000n // 1 USDC (6 decimals)
    
    { isRuntime: true, inputParams: [], outputParams: [] }
    
  • chainId: number

    The chainId to use

    1 // Ethereum Mainnet
    
  • tokenAddress: Address

    The address of the token to use on the relevant chain

    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" // USDC