Agent Integrations

Build a single-chain swap transaction

Returns a deBridge quote plus an unsigned transaction for a same-chain swap. A 1% affiliate fee (configurable) is injected and collected on-chain by deBridge on the swap's chain.

post/agent-integrations/crypto/swap

Request

  • Base URL: https://api.tinyhumans.ai
  • URL: https://api.tinyhumans.ai/agent-integrations/crypto/swap
  • Auth: HTTP bearer

Request body

chainIdinteger required

deBridge chain id the swap executes on

tokenInstring required

Input token address (use the zero address for native)

tokenInAmountstring required

Input amount in the token's smallest unit

tokenOutstring required

Output token address

tokenOutRecipientstring required

Address that receives the output tokens

senderAddressstring required

Address sending the transaction

slippagestring

Slippage percent or "auto" (default "auto")

Response

Quote and unsigned transaction with injected fee

Changes

No recorded changes to this operation across all 1 revision of this API.