// First, call `precheck()` to get a best-estimate result indicating that the ability execution in the LIT action runtime will not fail constprecheckResult = awaituniswapSwapAbilityClient.precheck({ ethRpcUrl:ETH_RPC_URL, rpcUrlForUniswap:BASE_RPC_URL, chainIdForUniswap:8453, // Base tokenInAddress:'0x4200000000000000000000000000000000000006', // WETH tokenInDecimals:18, tokenInAmount:0.0000077, tokenOutAddress:'0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', // USDC on Base tokenOutDecimals:8, }, { delegatorPkpEthAddress:'0x123456789123456789123456789...', });
A VincentAbilityClient provides a type-safe interface for executing abilities, for both
precheck()
andexecute()
functionality.