Skip to main content

Backend Integration

Backend integration means interacting with Boros through its REST API and TypeScript SDK rather than calling contracts directly. This is the recommended path for most integrators: the API handles calldata generation, signature encoding, and on-chain submission, so you can build trading workflows without managing ABI encoding or gas mechanics yourself.


Services​

All services are hosted under https://api.boros.finance.

ServicePath prefixPurpose
Open API/open-api/v1/ or /v2/Market data, calldata generation, account queries, simulations
Send Txs Bot/send-txs-bot/v2/ or /v3/Receives agent-signed calldatas, submits them on-chain, charges gas from user's gas balance
Stop Order/stop-order/v1/ to /v3/Off-chain conditional order (take-profit/stop-loss) management

Request Flow​

Boros uses a two-track signing model. Sensitive account actions are signed by the root wallet and sent directly to the blockchain. Non-sensitive trading actions are signed by an agent wallet and routed through the Send Txs Bot, which manages gas, nonce, and submission.

Root wallet  ──[sensitive: deposit / withdraw / approve-agent]──▢  Blockchain (direct)
Agent wallet ──[non-sensitive: place / cancel / transfer]──────▢ Send Txs Bot ──▢ Blockchain

The Send Txs Bot charges gas from the user's on-chain gas balance in USD at the actual Arbitrum cost, with no markup.


SDK​

The official TypeScript SDK covers signature generation, calldata encoding, and type-safe API calls for all three services.

Install

npm install @pendle/sdk-boros

Packages

PackagePurpose
@pendle/sdk-borosMain SDK β€” API clients, calldata builders, signature helpers
@pendle/boros-offchain-mathMath utilities β€” FixedX18 type, tick/rate conversion

Links


What's in This Section​

PageContents
GlossaryKey terms and type definitions used throughout the API
AgentSetting up and managing agent wallets
APIFull REST endpoint reference and integration workflows
WebSocketReal-time market and account data streaming
Best PracticesPatterns for gas efficiency, error handling, and market management
Stop OrdersConditional take-profit and stop-loss order management