← 返回
开发者工具 中文

XRPL Transaction Builder

Build, sign, and submit XRP Ledger transactions including payments, NFT minting/burning, with Xaman wallet integration.
构建、签名并提交 XRP Ledger 交易(支付、 NFT 铸造/销毁),集成 Xaman 钱包。
harleyscodes
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 962
下载
💾 8
安装
1
版本
#latest

概述

XRPL Transaction Builder

Setup

npm install xrpl

Basic Payment

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

Submit Transaction (Xaman Signed)

// After user signs with Xaman, submit:
const txBlob = signedTransactionBlob; // from Xaman payload
const result = await client.submit(txBlob);

Common Transaction Types

Payment

{
  TransactionType: 'Payment',
  Account: 'r...',
  Destination: 'r...',
  Amount: '1000000', // drops
  DestinationTag: 123
}

NFTokenMint

{
  TransactionType: 'NFTokenMint',
  Account: 'r...',
  NFTokenTaxon: 0,
  Issuer: 'r...',
  TransferFee: 5000, // 5% royalty
  Flags: 8, // burnable
  URI: 'ipfs://...'
}

SetAccountRoot

{
  TransactionType: 'SetAccountRoot',
  Account: 'r...',
  EmailHash: 'abc123...',
  Domain: 'example.com'
}

Key Concepts

  • Drops: 1 XRP = 1,000,000 drops
  • Address: Classic r-address (starts with 'r')
  • Destination Tag: Optional memo for payments
  • Flags: Transaction-specific options (see XRPL docs)

RPC Endpoints

  • wss://xrplcluster.com (public)
  • wss://s1.ripple.com (Ripple)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,120
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,784
data-analysis

KyberSwap Arbitrage

harleyscodes
通过 KyberSwap 在 Base 上执行三角套利:寻找获利机会,计算最优路径,并在考量 Gas 成本的情况下执行多跳交易。
★ 0 📥 1,141