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

Chain 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

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"
}

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

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"
}

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

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"
}

back to top

/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"
}

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

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"
}

back to top

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.

back to top

Last updated