Vaults SDK

The Vaults SDK enables wallets and applications to integrate Network-listed Vaults. It provides market discovery, position data, transaction preparation, and wallet signing integrations.

SDK Capabilities

Capability

Description

Market discovery

Retrieve Network-listed Vaults, their terms, availability, and restrictions

Position data

Read an account's positions in supported Vaults

Transaction planning

Prepare unsigned deposit and withdrawal operations

Transaction validation

Validate operations against applicable market rules and account conditions

Wallet integration

Connect supported wallets for transaction approval and signing

Transaction tracking

Track operation results and reconcile position changes

Market Registry

Retrieve listing status and market metadata

Protocol adapter

Read supported protocol data, normalize values, and construct transactions

The SDK includes Market Registry schemas and compatibility tests. Supported wallets, versions, and implementation examples are documented in the materials provided to preview partners.

Provider Modes

The SDK uses two provider modes.

Provider

Description

Status

Dev provider

Reads public XRPL Devnet RPC data and applies Network rules using Market Registry data

Preview

API provider

Uses the Network API to provide the same partner-facing operations

In development

The Dev provider supports direct integration with the native XRPL testing environment without requiring a partner-operated application server.

Both providers target a common interface. Compatibility between their implementations remains subject to conformance testing as the API provider is developed.

Integration Flow

A typical integration follows these steps:

  1. Discover Vaults

    Retrieve Network-listed Vaults and display their supported assets, terms, availability, and applicable restrictions.

  2. Connect an account

    Connect a supported wallet and retrieve the account's Vault positions.

  3. Check eligibility

    Verify that the account meets the selected Vault's access requirements, including KYC/KYB verification where applicable.

  4. Prepare an operation

    Collect the deposit or withdrawal amount and prepare the required unsigned transaction plan.

  5. Validate the plan

    Check the operation against current market conditions, account requirements, and applicable transaction parameters.

  6. Request signing

    Present the finalized transactions to the user's wallet for approval and signing.

  7. Confirm the result

    Track the operation, retain the transaction hash where applicable, and reconcile the confirmed result before updating the displayed position.

The SDK prepares transactions but does not sign them. Signing remains under the user's control through their wallet.

Applications must use the selected Vault's withdrawal terms, including any notice periods, redemption schedules, liquidity limits, and settlement requirements. A withdrawal request does not necessarily result in immediate settlement.

Vault MPTs

A lender's position in a Network Vault is represented by a Vault Multi-Purpose Token (Vault MPT). Network Vault MPTs are non-transferable.

Vault MPT quantities and underlying asset amounts use different units. Applications must use exact decimal strings or integer units rather than floating-point arithmetic.

For native XRP Ledger integrations, receiving a Vault MPT may require an MPTokenAuthorize transaction. The transaction plan must also account for applicable fees and XRPL account reserve requirements.

Estimated redemption values are not guaranteed settlement amounts. The amount received depends on the applicable Vault terms and valuation at redemption.

For native Single Asset Vault integrations, the ShareMPTID ledger field identifies the Vault's MPT issuance. Protocol field names must be preserved even when the application displays the token as a Vault MPT.

See Multi-Purpose Tokens and MPTokenAuthorize.

Market Registry

The Market Registry determines which Vaults are available through Network integrations.

Standard market discovery returns Network-listed Vaults only. A Registry entry does not necessarily indicate an active listing: a market may be suspended or delisted.

A Vault's existence on the XRP Ledger does not establish that it is listed by the Network. A Broker's Verified status also does not automatically establish a listing for its Vaults.

Data Sources

SDK integrations must distinguish information according to its source.

Data

Source

Provenance

Native ledger objects, balances, and validated transactions

XRP Ledger

xrpl

Listing status, verification metadata, and market information

Market Registry

registry

Calculated metrics and historical aggregates

Terminal integration, planned

derived

Where applicable, responses identify the network, ledger index or hash, observation time, and Market Registry revision. These provenance requirements do not define a fixed response schema.

Historical APY and total value locked (TVL) are planned data products, not committed SDK fields. APY must not be presented as a guaranteed return.

Listing Rules

Listing rules determine which markets the SDK discovers and for which markets it prepares standard operations.

These rules do not restrict the XRP Ledger itself. A direct transaction involving an unlisted native Vault may still be accepted by the protocol, subject to that Vault's restrictions.

Before preparing an operation, refresh the listing status, applicable market conditions, and relevant account state. Do not proceed if required information is stale, unknown, or unsupported.

A position may remain after its market is suspended or delisted. Standard discovery and position methods must not be assumed to include all such holdings. A separate exit path for affected positions is planned; its availability and requirements are provided to preview partners.

Protocol Compatibility

The SDK supports Network Vault integrations, including applicable XRP Ledger protocol primitives.

For native Single Asset Vault and Lending Protocol integrations, transaction construction and validation must follow the ledger entry definitions, enabled amendments, and transaction requirements of the target network.

Closed-ended native Vaults under LendingProtocolV1_1 use Subscription, Investment, and Redemption phases. These phases determine when deposits, withdrawals, and new loan originations are permitted.

Applications integrating these Vaults must check the current phase using ledger time and revalidate it before signing. These lifecycle rules must not be applied to Network Vaults that use different redemption arrangements.

Protocol references:

Transaction Flow

The SDK separates transaction preparation, wallet signing, submission, and confirmation.

For XRP Ledger transactions, a successful submission response does not establish that the transaction succeeded. The final result must be confirmed against a validated ledger.

Validate the Operation

Before signing, confirm that the prepared transaction matches the user's approved intent:

  • Target network and account.
  • Selected Vault and underlying asset.
  • Transaction type and exact amount.
  • Required authorizations and account conditions.
  • Fees, expiration, and any dependent transaction steps.

Applications must not trust an unsigned transaction solely because it was returned by the SDK or API.

Finalize Before Signing

For XRP Ledger transactions, finalize the following fields using current ledger data:

  • Sequence β€” The account's transaction sequence.
  • Fee β€” The transaction fee, subject to an appropriate application limit.
  • LastLedgerSequence β€” The last ledger in which the transaction may be included.
  • NetworkID β€” Included only when required by the target network.

Refresh the market's listing status and relevant conditions before signing. For native closed-ended Vaults, recheck the lifecycle phase.

If validation fails or a material condition changes, stop and prepare a new operation.

The user's wallet signs the finalized transaction.

See Transaction Common Fields.

Multi-Step Operations

Multi-step operations are not atomic.

When a step depends on an earlier transaction, confirm that the preceding transaction validated successfully before preparing the dependent step.

If a later step fails, preserve the results of transactions that already succeeded. Do not assume earlier steps were rolled back.

Handle Transaction Results

Result

Application Behavior

User declines signing

Stop without recording a submitted transaction

Submission response or provisional success

Retain the transaction hash and wait for validation

Validated transaction with tesSUCCESS

Read transaction metadata and refresh the position

Validated transaction with a tec result

Report the failed operation and applicable transaction fee

Timeout or transaction not found

Keep the outcome unresolved and reconcile against ledger history

A timeout does not establish that a transaction failed.

Before preparing a replacement, check the original transaction hash and determine whether it validated or expired without inclusion in a validated ledger. Confirm expiration using sufficiently complete ledger history.

If the outcome remains uncertain, do not initiate a duplicate operation. Any retry must use fresh state and reflect the user's approved intent.

See Reliable Transaction Submission.

Signing Security

The SDK and Network API do not require user seeds or private keys. Transactions are signed through the user's wallet.

Partner API credentials identify an application and control API access. They do not authorize transactions from a user's account.

Server-side credentials must remain on the partner's server. Browser integrations must use credentials approved for public clients.

Get Access

To request Vaults SDK Preview access and integration documentation, contact [email protected].

Provide a brief description of your project and intended integration. Supported features, wallet compatibility, and access requirements are shared with preview partners.