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
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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. |
/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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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 |
/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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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. |
/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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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 |
/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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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 |
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. |
Last updated