Skip to main content
Blend’s SDK handles quoting, Safe management, sessions, and cross-chain execution from your backend. These docs target SDK version 3.1.2.

Packages

You install @blend-money/node. It pulls in @blend-money/core for you.

At a glance

Core concepts

Safes

Every user gets their own Gnosis Safe - a smart contract wallet on-chain. Funds are never pooled. Each Safe is independent, with its own balances and positions. The user is always the owner.

Sessions

Every deposit and withdrawal is a session (also called an intent). A session tracks the operation from quote to settlement. One active session per account at a time. Re-quote on the same session to update prices without creating a new one.

Action plans

When you execute a quote, the SDK converts it into action plans - the actual on-chain transactions routed through the user’s Safe. Deposits produce one action plan. Withdrawals can produce several, one per source chain.

Signing and gas

The SDK does not sign transactions. It does not take paymaster settings either. Your submitActionPlan callback owns backend signing and gas.

Session lifecycle

Sessions move through a state machine. Terminal states are SETTLED, FAILED, and CANCELLED. Submitting hashes records the submission and settles the session. It does not verify transaction receipts. Use balances and positions as the source of truth for indexed on-chain activity. The SessionStatus type retains SUBMITTED and FAILED for legacy sessions. New submissions settle directly. One active session is allowed per account. Re-quote an OPEN session to change its amount, token, or chain.

Using the SDK

Set up account management and sessions from your backend.

Deposits & Withdrawals

Quote and execute deposits, withdrawals, and cross-chain flows.

SDK Reference

Auth, accounts, balances, error codes, and type definitions.

Your First Deposit

Install the SDK and make a deposit from your server.
Last modified on November 25, 2026