Prepare Escrow Transaction
prepare_escrowBuild a ready-to-sign XRPL EscrowCreate transaction — no XRPL library required. Free to try: pass network='testnet' (see create_testnet_wallet / try_testnet_demo).
Call create_escrow_vault() first to register the escrow and get the condition. Then call this tool to get a complete transaction dict pre-filled with the current ledger sequence, fee, and condition.
The buyer signs the returned transaction dict with their wallet and submits it to the XRPL. Then call confirm_escrow_transaction() with the tx hash.
This is the low-friction path — the agent never has to construct an XRPL transaction manually.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"escrow_id": "<escrow_id>",
"buyer_address": "<buyer_address>",
"worker_address": "<worker_address>"
},
"name": "prepare_escrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | 'mainnet' (default) or 'testnet'. | mainnet |
| currency | No | Currency to lock. "XRP" or "RLUSD". | XRP |
| escrow_id | Yes | The receipt code from create_escrow_vault(). | |
| amount_xrp | No | Amount of XRP to lock. Required for XRP escrow. | |
| buyer_address | Yes | XRPL address (r...) of the buyer who will sign the EscrowCreate. | |
| worker_address | Yes | XRPL address (r...) of the worker who will receive payment on approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||