Actions
EXECUTE: commits wallet_order. on_chain (POST /execute/**, Smart Wallet JWT) · merchant (torque-checkout, sk_live_…). Third-party → Connect handoff. Channel rules: Lifecycle.
Channels
| Channel | Intents | Auth | Commit path |
|---|---|---|---|
| on_chain | swap, transfer, lend, borrow | Smart Wallet JWT | POST /execute/** |
| merchant | pay | sk_live_… + Business ID | torque-checkout SDK |
Merchant Channel (pay)
intentType: pay via torque-checkout. Fulfillment → webhooks.
| Action | Method | Path / SDK | Notes |
|---|---|---|---|
| Pay (merchant) | SDK | torque-checkout | intentType pay; checkout session + buyer wallet_order |
| Order webhooks | POST | /api/webhooks/order-update | Merchant fulfillment sync; sk_live_… |
At a Glance (on_chain)
| Base URL | https://app.torque.fi/api/v1 |
| Auth | Authorization: Bearer <smart_wallet_jwt> |
| Wallet identity | GET /api/v1/accounts/wallet |
| Assistant link | POST /api/v1/decide/assistant/chat |
Third-Party Handoff
- B:
POST /connect/confirm→/connect/execute - C: OAuth →
POST /connect/token→torque-actions
SDKs: torque-connect, torque-actions.
Authentication
Smart Wallet JWT on all on_chain routes (Authentication). Optional Idempotency-Key — see Execute idempotency.
auth-header
Authorization: Bearer <smart_wallet_jwt>
Content-Type: application/json
Idempotency-Key: <uuid> # optional — 24h replay on POST /execute/**Endpoints
| Action | Method | Path | Notes |
|---|---|---|---|
| Trade (EVM) | POST | /api/v1/execute/trades | Enso swap; alias /actions/trade/swap |
| Trade (Solana) | POST | /api/v1/execute/trades/solana | Jupiter Ultra; alias /actions/trade/swap/solana |
| Transfer (EVM) | POST | /api/v1/execute/transfers/evm | EVM token or native; alias /actions/transfer/evm |
| Transfer (Solana) | POST | /api/v1/execute/transfers/solana | SPL or SOL; alias /actions/transfer/solana |
| Transfer (BTC) | POST | /api/v1/execute/transfers/btc | Custodial send; alias /actions/transfer/btc |
| Lend (EVM) | POST | /api/v1/execute/lends/evm | Enso delegate; alias /actions/lend/evm |
| Borrow (EVM) | POST | /api/v1/execute/borrows/evm | Enso bundle; alias /actions/borrow/evm |
Examples
Submit functionResults from Assistant or build bodies per OpenAPI (BuildEnsoSwapRouteBody, TransferEvmBody, etc.). Sender forced to JWT-linked wallet.
swap-evm.sh
curl -sS -X POST "https://app.torque.fi/api/v1/execute/trades" \
-H "Authorization: Bearer $WALLET_JWT" \
-H "Content-Type: application/json" \
-d '{
"chainId": 8453,
"tokenIn": "0x…",
"tokenOut": "0x…",
"amountIn": "100000000",
"slippageBps": 100
}'transfer-evm.sh
curl -sS -X POST "https://app.torque.fi/api/v1/execute/transfers/evm" \
-H "Authorization: Bearer $WALLET_JWT" \
-H "Content-Type: application/json" \
-d '{
"chainId": 8453,
"recipient": "0x…",
"token": "0x…",
"amount": "1000000"
}'Was this helpful?