Install
openclaw skills install xrpl-tx-builderBuild, sign, and submit XRP Ledger transactions including payments, NFT minting/burning, with Xaman wallet integration.
openclaw skills install xrpl-tx-buildernpm install xrpl
import { Client, Wallet, Payment } from 'xrpl';
const client = new Client('wss://xrplcluster.com');
// Build payment tx
const tx: Payment = {
TransactionType: 'Payment',
Account: wallet.address,
Destination: 'rDestinationAddress...',
Amount: '1000000', // drops (1 XRP = 1,000,000 drops)
DestinationTag: 12345 // optional
};
// After user signs with Xaman, submit:
const txBlob = signedTransactionBlob; // from Xaman payload
const result = await client.submit(txBlob);
{
TransactionType: 'Payment',
Account: 'r...',
Destination: 'r...',
Amount: '1000000', // drops
DestinationTag: 123
}
{
TransactionType: 'NFTokenMint',
Account: 'r...',
NFTokenTaxon: 0,
Issuer: 'r...',
TransferFee: 5000, // 5% royalty
Flags: 8, // burnable
URI: 'ipfs://...'
}
{
TransactionType: 'SetAccountRoot',
Account: 'r...',
EmailHash: 'abc123...',
Domain: 'example.com'
}
wss://xrplcluster.com (public)wss://s1.ripple.com (Ripple)