Portal Community

execute (SWP01) wallet secret required, confirmed

Executes a token swap inside a managed account. This moves funds.

FieldRequiredDescription
accountName✓ YesThe account performing the swap.
fromToken✓ YesToken to swap from.
toToken✓ YesToken to swap to.
fromAmount✓ YesMust be positive.
networkNoDefaults to base-sepolia.

Output: single execution-result record — transactionHash, fromToken, toToken, fromAmount, toAmount, network.

No confirmed idempotency mechanism for this operation. Unlike Transfer, a stable idempotency key is still sent on a best-effort basis, but: Treat a timeout or 5xx from this operation as an unknown outcome — check the account's balance/transaction history before retrying, don't assume it failed.

quote (SWP02)

Read-only swap price quote. No wallet secret needed.

FieldRequiredDescription
fromToken✓ YesToken to swap from.
toToken✓ YesToken to swap to.
fromAmount✓ YesMust be positive.

Output: single quote record — liquidityAvailable, fromToken, toToken, fromAmount, toAmount, network.

liquidityAvailable: false is a normal response, not a failure. Check this field before calling execute — don't rely on the operation throwing an error when liquidity is insufficient.