# Convert between XRP and drops

> Convert between XRP and drops is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-29).

Converts a specified amount between XRP and its smallest unit (drops) on the XRP Ledger

## Facts

- Endpoint: POST https://twin.unykorn.org/xrpl-drops?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/convert-between-xrp-and-drops-a7fb82f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q6P6FJwpr2YraHYntTBeY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability convert-between-xrp-and-drops-a7fb82f3 -d '<json body>'
```

Example prompt: Convert 25 XRP to drops for me — I need the drop-denominated equivalent to use in an XRPL transaction.

## When to prefer this

Choose this endpoint when you need a quick, programmatic conversion between XRP and drops in an XRPL-aware context and want a verifiable on-chain receipt of the computation. Ideal for agents building or validating XRPL transactions, interpreting raw ledger balances, or confirming user-entered XRP values against drop-denominated thresholds.

## Known failure modes

- Missing or invalid 'from' field — must specify direction of conversion (e.g. 'xrp' or 'drops')
- Missing or non-numeric 'amount' field — returns error if amount cannot be parsed
- Network or payment failure — x402 payment not processed, call rejected
- Malformed request body — returns 400-level error if JSON is invalid

## How this service works

Convert between XRP and drops — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok:true, the conversion type ('xrpl-drops'), the converted value, and a payment receipt including a transaction hash, USD amount charged, receipt ID, and ISO8601 timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "from": {
     "type": "string"
    },
    "amount": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "xrpl-drops",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.25,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/convert-between-xrp-and-drops-a7fb82f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
