Skip to main content
The Trusset API provides programmatic access to tokenization infrastructure, custody operations, trading, lending, and the MiCA Register. All endpoints follow REST conventions and return JSON responses.

Base URL

Response format

Every response follows a consistent envelope:
Error responses include a machine-readable code and human-readable message:

Available APIs

Customers

Customer records, linked wallets, on-chain identity verification, and claims backed by zk-STARK KYC proofs. Customer records require the customers service; identity, proofs, verification profiles and ID links require identity.

MiCA Register

Query the EU MiCA registry. Search licensed CASPs, ART issuers, EMT issuers, and non-compliant entities sourced from ESMA. Free access with a MiCA API key.

Tokenization

Import a tokenized asset issued elsewhere and describe it for your instance. Detect the token standard, record the asset, publish the instrument profile and its documents, and keep the chain-read facts current.

Trading

Order book trading across three products: tokenized stocks, imported ERC-3643 security tokens, and tokenized commodities. Manage books and custody setup, enforce price references, and place orders. Each product has its own settlement model, so start from its overview.

Lending

Lending markets collateralized by imported security tokens, ERC-20, ERC-1400 and ERC-3643 alike. Deploy freeze or custody markets, publish NAV pricing, set rate modes and loan terms, manage liquidity and loans, and run the operator-driven liquidation settlement workflow.

Asset Register

The pledge record a register provider enters against a token. Read every collateral lock a lending market has taken, with the holder, the pledgee, the amount, and the transaction that created it.

Vaults

Deposit into a bank-operated earning vault and redeem shares. Discover vaults, read positions and live share price, and drive deposits and redemptions.

HTTP status codes

The API uses standard HTTP status codes:

Write operations

Endpoints that touch a contract (identity verification, token issuance, redemptions, freezes, force transfers, oracle syncs, market deployments, loans, liquidations) do not execute anything. They return an unsigned payload built against the target contract. You sign it with your registered wallet and broadcast it yourself. Trusset holds no private key and has no signer. Nothing moves on-chain without a signature you produced. A write response carries one of four shapes, depending on what the operation needs: Multi-step responses are ordered and must be broadcast in sequence. Where a contract pulls tokens from you, the ERC-20 approval is the first step.
Read-only endpoints (balance queries, holder lookups, transfer compliance checks, status lookups, market metrics) return data directly and need no signature.

Confirm a transaction

Some endpoints record state once the transaction is mined. To record it, call the same endpoint a second time with the transaction hash in the body:
Trusset then reads the receipt from the chain and checks that the transaction was mined, succeeded, targeted the expected contract, and called the expected function with the arguments you claimed. Only then does it write to the database and return the mined result, including values that exist only after execution such as loanId, liquidationId, auctionId, and positionId. State is derived from the receipt, never from the request body. A confirm call that fails verification changes nothing.
TX_NOT_FOUND is the expected response when you confirm too early. Wait for one confirmation and retry, rather than treating it as a failure.

Authorisation errors

Writes are authorised against the wallets registered on the instance, and against the roles those wallets hold on your contracts.