Liquidity Docs

Wallet API - Documentation

Complete documentation for the Liquid wallet-api: the chain-execution and key-custody engine for MPC wallets, ERC-3643 assets, and dual-intent settlement.

Complete documentation for the Liquid wallet-api: the chain-execution and key-custody engine for the tokenized-securities platform. It provisions MPC-secured smart-contract wallets, onboards them into the ERC-3643 compliance framework, manages the full token lifecycle, and settles trades atomically - exposing all of it as a clean async HTTP API that the Transfer Agent and the front-end consume, while keeping private keys split across an MPC network and platform keys in an HSM.

Last updated: 2026-08-12.

Contents

DocCovers
architectureSystem topology, the Device -> liq-ats -> ta-api -> wallet-api -> node3 path, ports, data flow, MPC modes
componentsEvery internal package/service in detail (onchain, multisig, trading, walletapi, jobs, raw-call lanes, MPC relay)
workflowsEverything wallet-api does: wallet provisioning, identity, asset lifecycle, trade & settlement, the MPC ceremonies
data-modelPostgres schema + the on-chain ERC-3643 / V42 / TokenSettlement contracts
mpcHow MPC works and what we use: the 2-of-3 Doerner ceremonies, the relay chain and its trust boundaries, signing modes, libraries + pins, failure modes
third-partyEvery external service and library wallet-api touches (chain, node3/mpcium, HSM, Postgres)
deploymentConfiguration (WALLET_* env), Docker, Kubernetes, HSM + node3 secrets
API reference
api/wallet-apiAll HTTP endpoints (wallet, identity, asset, deposit, chain reads, trade, settlement, raw-call lanes, jobs)

What the Wallet API is (in one paragraph)

wallet-api is the single gateway through which the rest of the system reads from and writes to the blockchain. It turns high-level business requests - "create this user a wallet", "mint this token", "settle this trade" - into signed, confirmed transactions on the blockchain09 EVM (chain id 8675399), while keeping private keys split across an MPC network so no single party ever holds a complete key. It targets the ERC-3643 (T-REX) compliant-token standard, with a per-investor V42 threshold-multisig smart-contract wallet as each holder's on-chain account.

Why it exists

Historically all wallet, trading, and chain logic lived inside the Transfer Agent monolith (the Go module is still github.com/liquidity-alt/ta-revision; the service is now ta-api). wallet-api was extracted so that:

  • One service owns the chain - all contract deployment, signing, nonce management, and gas handling live in exactly one place.
  • Key material is isolated - the node3 credential and every signing seam are concentrated behind this service and never leak to callers (TA-CLIENT-002).
  • The monolith becomes a pure consumer - ta-api keeps the "Transfer Agent things" (register, ledger, compliance rules, maker-checker governance, audit) and delegates every on-chain effect to wallet-api over HTTP.

ta-api = the regulatory / ledger / governance brain (formerly ta-revision). wallet-api = its chain executor.

The system at a glance

   Device                    Browser edge      Transfer Agent        Platform
  (share1 + share2)

   mpc.wasm workers  --WSS-->  liq-ats  ---->  ta-api  ---->  wallet-api  ---->  blockchain09 (EVM)
                              (only host      (gateway +      (this service)     node3 (share3, MPC)
                               the browser     consumer)                          HSM (platform keys)
                               may reach)
  • The user's device holds MPC shares (share1, share2) and runs the ceremonies against node3 (share3, the platform party).
  • liq-ats is the only origin the browser reaches; it proxies the three MPC ceremony paths to ta-api.
  • ta-api is a transparent hop for the ceremony and the caller for every wallet/asset/trade operation.
  • wallet-api performs the on-chain work, mints the node3 token, and relays MPC frames to node3. See mpc for the full mechanism.