Executes a token swap on Uniswap V4 protocol using Turnkey wallet for signing. The transaction is automatically signed and optionally broadcasted to the blockchain.
Key Features:
Flow:
Note: The signWith parameter must be an account ID or address that belongs to the integrator.
Use this format: ApiKey <your_api_key>
Integrator ID (required for ADMIN/INTERNAL scope)
"uuid-integrator-id"
Swap execution parameters
Wallet account ID or address to sign the transaction with
"account-123"
Input token address (use 0x0000000000000000000000000000000000000000 for native token)
"0x0000000000000000000000000000000000000000"
Output token address
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
Amount to swap (in token decimals, as string)
"1000000000000000000"
Minimum amount out (slippage protection)
"1450000000"
Chain ID
1
Automatically approve token if needed (default: true)
true
Automatically broadcast the transaction after signing (default: true)
true
Deadline timestamp (optional, defaults to 20 minutes from now)
1234567890