Development v1.0.0

xrpl-token-mint

Create and manage XRPL tokens (issued currencies) and NFTs. Use for: (1) Minting new tokens, (2) Setting up token...

harleyscodes 更新于 2026-02-15 1 浏览
下载 SKILL

技能说明

Create and manage XRPL tokens (issued currencies) and NFTs. Use for: (1) Minting new tokens, (2) Setting up token issuers, (3) Creating NFTs, (4) Managing trust lines.

使用场景

Create and manage XRPL tokens (issued currencies) and NFTs. Use for: (1) Minting new tokens, (2) Setting up token issuers, (3) Creating NFTs, (4) Managing trust lines.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/xrpl-token-mint
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 21 kB
SKILL.md text/markdown
---
name: xrpl-token-mint
description: Create and manage XRPL tokens (issued currencies) and NFTs. Use for: (1) Minting new tokens, (2) Setting up token issuers, (3) Creating NFTs, (4) Managing trust lines.
---

# XRPL Token Minting

## Setup

```bash
npm install xrpl
```

## ISSUED CURRENCY (Fungible Token)

### Step 1: Create Trust Line (User)
```typescript
{
  TransactionType: 'TrustSet',
  Account: 'rUserAddress',
  LimitAmount: {
    currency: 'USD',
    issuer: 'rIssuerAddress',
    value: '1000000'
  }
}
```

### Step 2: Issue Token (Issuer)
```typescript
{
  TransactionType: 'Payment',
  Account: 'rIssuerAddress',
  Destination: 'rUserAddress',
  Amount: {
    currency: 'USD',
    issuer: 'rIssuerAddress',
    value: '1000'
  }
}
```

## NFT (Non-Fungible Token)

### Mint NFT
```typescript
{
  TransactionType: 'NFTokenMint',
  Account: 'rCreatorAddress',
  NFTokenTaxon: 0, // Collection ID
  Issuer: 'rCreatorAddress', // or different issuer
  TransferFee: 2500, // 2.5% royalty on secondary sales
  Flags: {
    tfBurnable: true,
    tfOnlyXRP: false,
    tfTrustLine: false
  },
  URI: 'ipfs://Qm...' // Metadata URL
}
```

### Create Offer (Sell)
```typescript
{
  TransactionType: 'NFTokenCreateOffer',
  Account: 'rSellerAddress',
  NFTokenID: '00080000...',
  Amount: '1000000', // 1 XRP
  Flags: tfSellNFToken
}
```

### Accept Offer (Buy)
```typescript
{
  TransactionType: 'NFTokenAcceptOffer',
  Account: 'rBuyerAddress',
  NFTokenOfferID: 'offerID...'
}
```

## Flags

- **tfBurnable**: Issuer can burn tokens
- **tfOnlyXRP**: Token cannot be transferred for IOUs
- **tfTransferable**: Token can be transferred
- **tfSellNFToken**: Create offer is a sell offer

## Key Points

- Token name: 3-character code (e.g., "USD") or full 40-char hex
- Precision: Up to 16 decimal places
- TransferFee: 0-50000 (0-50%)
- NFT Taxon: User-defined collection ID

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。