XRP Ledger RWA

Available Endpoints:

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

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

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

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

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

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

Also, see Error Handling Details

DEX IDs

Please use Chain ID 1600 for the XRP Ledger Mainnet and 1601 for the XRP Ledger Testnet See the Chain ID 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

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "100",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}

back to top

/issue

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

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

Request Body

{
    "chainId": "1600",
    "to": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "amount": "1000000",
    "assetCode": "USD",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "destinationTag": "10"
}

back to top

/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

{
    "chainId": "1600",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
    "amount": "100000",
    "assetCode": "USD",
    "issuer":"rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1"
}

back to top

/burn

Executes a transaction to burn or delete an asset.

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

Request Body

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}

back to top

/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

{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "user": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}

back to top

Error Handling Details

back to top

Last updated