v1
latestOpenAPI 3.1.02026-07-262771117.8 KBGet Action
Generates a transaction for cross-chain swaps, bridges, and calls. The action includes transaction data, routing information, and fee calculations for executing the requested operation.
Query parameters
Type of action to perform.
Type of action to perform
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
The address of the sender/user
Chain ID. Find in the list of supported networks.
Source chain ID
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Source token address
Chain ID. Find in the list of supported networks.
Destination chain ID
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Destination token address
Slippage tolerance in bps
The exact in or exact out amount of the swap
Required: for swap-action
Required: for polymarket action type
Swap direction for the action.
Swap direction for the action
Required: for swap-action
Required: for polymarket action type (use exact-amount-in)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Address to receive the swapped tokens
Optional: for swap-action
Required: for polymarket action type (should be the proxy wallet address)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
The EVM address of the target contract (20 bytes hex)
Required: for evm-calldata-tx action type
Hex string with 0x prefix
Calldata for the transaction
Required: for evm-calldata-tx action type
Value to send with transaction
Optional: for evm-calldata-tx action type
The amount of Erc20 being transferred
Optional: for evm-calldata-tx action type (use for calls requiring Erc20 transfers)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
The Erc20 spender requiring approval for the transaction call
Optional: for evm-calldata-tx action type (will default to the to address)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Solana address that pays for tx fees and rent (e.g. ATA creation). Only used for Solana same chain swaps. Transaction must be signed by both the user and the sponsor.
Optional: When provided, the sponsor covers transaction costs on behalf of the user.
Specific bridge protocols to use
Optional: Will default to all available protocols
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Alternate address to receive refunds
Optional: Will default to the sender
Return a deposit address for deposit-based flows
Optional: Set to true to receive a deposit address in the response
Application fees configuration as JSON array
Optional: Will default to fees configured for the application
Example: [{ "bps": 50, "receiverAddress": "0x..." }]
Polymarket user ID - returned from POST /create
Required: for polymarket action type
Order side for Polymarket orders
Required: for polymarket action type
Polymarket CLOB token ID
Required: for polymarket action type
Polymarket order type
Required: for polymarket action type
- FOK: Fill or Kill (market order)
- FAK: Fill and Kill (market order)
Fee rate in basis points (non-negative)
Required: for polymarket action type
Price tick size for Polymarket orders
Required: for polymarket action type
Negative risk flag for Polymarket
Required: for polymarket action type
Request gasless execution. When true, the response includes an executions array of signed steps to relay through the gasless provider instead of broadcasting a transaction directly.
Optional: Only supported on chains with a configured gasless provider (currently Tron). Requires the API key to have gasless enabled.
Response
Successful response with action data