expand.network
  • Overview
  • Getting Started
  • 🔑How do I get my API Key?
  • 📑List of All Endpoints
  • ⚙️SDK
    • Overview
    • Getting Started
  • ⛓️INTEGRATIONS
    • ⚡Blockchains
      • EVM based blockchains
        • Ethereum
        • Binance Smart Chain
        • Avalanche - C
        • Avalanche - P
        • Avalanche - X
        • Polygon
        • Cronos
        • Arbitrum
        • Fantom
        • Optimism
        • Base
        • zkSync Era
        • Mantle
      • Non-EVM based chains
        • Tron
        • Solana
        • Near
        • Algorand
        • Aptos
        • Sui
        • Starknet
        • TON
        • Cosmos Hub
        • Osmosis
        • Stacks
        • Bitcoin
        • Stellar
          • Stellar RWA
        • XRP Ledger
          • XRP Ledger RWA
    • ⚡Bridges
      • Stargate
      • Stargate V2
      • Squid Router
      • Squid Router V2
      • Allbridge Classic
      • Allbridge Core
    • ⚡DEX & DEX Aggregators
      • Uniswap V2
      • Uniswap V3
      • Uniswap X
      • Sushiswap V2
      • PancakeSwap V2
      • PancakeSwap V3
      • Aerodrome
      • Camelot V3
      • Curve V2
      • Balancer V2
      • STON.fi
      • Trader Joe
      • Orca
      • Raydium
      • SDEX
      • Cetus
      • REF Finance
      • Liquidswap
      • Sologenic
      • Alex
      • 0x (Aggregator)
      • 1inch (Aggregator)
      • Kyberswap (Aggregator)
        • Kyberswap ( Limit Order Endpoints )
      • Jupiter (Aggregator)
    • ⚡Derivatives
      • dYdX V4
    • ⚡Fungible Tokens
      • ERC20
      • WETH
    • ⚡Lending Protocols
      • Aave V2
      • Aave V3
      • Compound V2
      • Compound V3
      • Morpho
    • ⚡Yield Aggregators
      • Yearn Finance V2
      • Harvest Finance
      • Pendle
    • ⚡Liquid Staking
      • Chorus One
      • Lido V2
      • Stader
      • Benqi
      • Jito
      • EigenLayer
    • ⚡Non Fungible Tokens
      • ERC721
      • ERC1155
      • Metaplex
    • ⚡Oracles
      • ChainLink
      • WinkLink
      • Pyth Network
      • RedStone
    • ⚡Stablecoins
      • EVM
    • ⚡Synthetics
      • Synthetix
    • ⚡Supported Wallets
      • MPC Wallets
        • DFNS
        • FORDEFI
        • FIREBLOCKS
        • CIRCLE
      • HD Wallets
        • PHANTOM
        • COINBASE
        • TON Wallet
      • Wallet Connect v2
  • How To
    • Execute a Local Swap
    • Execute a Cross Chain Swap
    • Use Limit Orders
    • Lend and Borrow
    • Provision Liquidity
      • Adding Liquidity
      • Removing liquidity
    • Yield Farm
    • Use Our Transaction Decoder
    • Submit an RFQ
    • Subscribe to Events
    • Stream Data (WebSocket)
      • Stream Transaction
      • Stream Trade
      • Stream Gas
      • Stream Ticker Price
    • Source Pricing
    • Track Memecoins
    • Manage Token Approvals
  • Use Cases
    • Trade Reconciliation
    • Portfolio Management
    • Trading Features
    • On-Chain Data: DEX Liquidity Pool Forensics
    • Transaction and Pool Analysis
  • Account Abstraction
    • Overview
      • User Endpoints
      • Paymaster Endpoint
      • Bundler Endpoint
    • ⚙️SDK - Overview
  • Additional Info
    • Error Messages
    • Client-Side Security Essentials
    • Compute Unit Costs
    • API Metadata
    • Audit Certificate
    • Brand Assets
    • FAQs
    • Quicknode Marketplace
      • DEX
      • Lending Protocols
  • ID's
    • Chain IDs
    • Bridge IDs
      • Internal Chain IDs for Bridges
    • DEX IDs
    • Lending Protocol IDs
    • Yield Aggregator ID
    • Liquid Staking IDs
    • Oracle IDs
    • Stablecoin IDs
    • Derivatives IDs
    • Synthetics IDs
  • Mapping
    • Blockchains
    • DEXs
      • Uniswap V2
      • Uniswap V3
      • Sushiswap
      • PancakeSwap
      • Curve
      • Balancer
    • Lending Protocols
      • Aave
      • Compound
  • Protocol Spender
    • Spender list
Powered by GitBook
On this page
  • Available Endpoints:
  • Chain IDs
  • Endpoint Details
  • /settrustline
  • /issue
  • /transfer
  • /burn
  • /freeze
  • Error Handling Details
  1. INTEGRATIONS
  2. Blockchains
  3. Non-EVM based chains
  4. XRP Ledger

XRP Ledger RWA

PreviousXRP LedgerNextBridges

Last updated 5 months ago

Available Endpoints:

Click on the endpoint to jump to the section with full details

  • POST - Implement a trustline between an issuer and asset holder.

  • POST - Executes a payment operation to issue an asset (excluding XRP) to the distributor.

  • POST - Trigger a payment operation to send an amount in a specific asset (XRP or non-XRP) to a destination account.

  • POST - Executes a transaction to burn or delete an asset.

  • POST - Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.

Also, see

Chain IDs

Please use Chain ID 1600 for the XRP Ledger Mainnet and 1601 for the XRP Ledger Testnet See the for a complete list of DEX IDs.

Endpoint Details

/settrustline

Implement a trustline between issuer and distributor.

POST https://api.expand.network/rwa/settrustline

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

from*

String

Public address of the distributor of asset.

amount*

String

The amount of asset to set trustline for.

issuer*

String

Public address of the issuer of the asset.

assetCode*

String

The code of asset to set trustline for.

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "100",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJUcnVzdFNldCIsIkFjY291bnQiOiJyb2d1ZTVIblBSU3N6RDlDV0dTVXo4VUdITVZ3U1NLRjYiLCJMaW1pdEFtb3VudCI6eyJjdXJyZW5jeSI6IlVTRCIsImlzc3VlciI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAwMDAwMTAwIn0sIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo1NTAwOTAwLCJMYXN0TGVkZ2VyU2VxdWVuY2UiOjg5NTE4MDU0fQ==",
        "referenceId": "bf64f21786364fe4b40687b1b1ea0226"
    }
}

/issue

Executes a payment operation to issue an asset (excluding XRP) to the distributor.

POST https://api.expand.network/rwa/issue

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

issuer*

String

Public address of the issuer of the asset.

assetCode*

String

The code of asset to be issued.

amount*

String

The amount at asset to be issued.

to*

String

The public address of the distributor.

destinationTag

String

{
    "chainId": "1600",
    "to": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "amount": "1000000",
    "assetCode": "USD",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "destinationTag": "10"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJBbW91bnQiOnsiY3VycmVuY3kiOiJVU0QiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAxMDAwMDAwIiwiaXNzdWVyIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSJ9LCJEZXN0aW5hdGlvbiI6InJvZ3VlNUhuUFJTc3pEOUNXR1NVejhVR0hNVndTU0tGNiIsIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo2MDMwMCwiTGFzdExlZGdlclNlcXVlbmNlIjo4OTUxODA4NX0=",
        "referenceId": "7b47c87345334b79837d013b55b37e41"
    }
}

/transfer

Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account.

POST https://api.expand.network/rwa/transfer

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

from*

String

Public address of sender of asset.

to*

String

Public address of the receiver of the asset.

amount*

String

Amount of asset to transfer.

issuer*

String

Public address of the issuer of the asset.

assetCode*

String

The code of the asset to transfer.

{
    "chainId": "1600",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
    "amount": "100000",
    "assetCode": "USD",
    "issuer":"rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJBbW91bnQiOnsiY3VycmVuY3kiOiJVU0QiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAwMTAwMDAwIiwiaXNzdWVyIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSJ9LCJEZXN0aW5hdGlvbiI6InIzS0ZkcjdGVFUxaHhvOURiUzFoNjVXcThNWEc3ZTljZ0siLCJGbGFncyI6MCwiRmVlIjoiMTIiLCJTZXF1ZW5jZSI6NjAzMDAsIkxhc3RMZWRnZXJTZXF1ZW5jZSI6ODk1MTgxMDh9",
        "referenceId": "b30e2a560ae64ad6bb50e0f1929cf66c"
    }
}

/burn

Executes a transaction to burn or delete an asset.

POST https://api.expand.network/rwa/burn

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

from*

String

Public address of the distributor of asset.

amount*

String

The amount of asset to burn

issuer*

String

Public address of the issuer of the asset.

assetCode*

String

The code of asset to burn

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJvZ3VlNUhuUFJTc3pEOUNXR1NVejhVR0hNVndTU0tGNiIsIkFtb3VudCI6eyJjdXJyZW5jeSI6IlVTRCIsInZhbHVlIjoiMC4wMDAwMDAwMDAwMTAwMDAiLCJpc3N1ZXIiOiJycnBObk5MS3JhcnR1RXFmSkdwcXlEd1BqMUFGUGc5dm4xIn0sIkRlc3RpbmF0aW9uIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSIsIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo1NTAwOTAwLCJMYXN0TGVkZ2VyU2VxdWVuY2UiOjg5NTE4MTI0fQ==",
        "referenceId": "d1f18b73e93e40a580abdd6bcb07cfde"
    }
}

/freeze

Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.

POST https://api.expand.network/rwa/freeze

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

user*

String

Public address of user to be freezed.

issuer*

String

Public address of the issuer of the asset.

assetCode*

String

The code of the asset to freeze

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "user": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJUcnVzdFNldCIsIkFjY291bnQiOiJycnBObk5MS3JhcnR1RXFmSkdwcXlEd1BqMUFGUGc5dm4xIiwiTGltaXRBbW91bnQiOnsidmFsdWUiOiIwLjAwMDAwMDAwMDAxMDAwMCIsImN1cnJlbmN5IjoiVVNEIiwiaXNzdWVyIjoicm9ndWU1SG5QUlNzekQ5Q1dHU1V6OFVHSE1Wd1NTS0Y2In0sIkZsYWdzIjoxMDQ4NTc2LCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo2MDMwMCwiTGFzdExlZGdlclNlcXVlbmNlIjo4OTUxODEzNX0=",
        "referenceId": "c71ff35024f3435f8262c858c117cb5a"
    }
}

Error Handling Details

Error
Description

400 (Bad Request)

Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.

401 (Unauthorised)

Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.

404 (Not Found)

Indicates that the specified endpoint or resource does not exist.

500 (Server Error)

Indicates an internal server error.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

⛓️
⚡
Chain ID
/settrustline
/issue
/transfer
/burn
/freeze
Error Handling Details
back to top
back to top
back to top
back to top
back to top
back to top
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID