{"uid":"cap_q6P6FJwpr2YraHYntTBeY","slug":"convert-between-xrp-and-drops-a7fb82f3","name":"Convert between XRP and drops","description":"Convert between XRP and drops — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/xrpl-drops?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"from":{"type":"string"},"amount":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"xrpl-drops","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.001,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Uwn1HfXSmLiziNSVvLf8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a specified amount between XRP and its smallest unit (drops) on the XRP Ledger","exampleAgentPrompt":"Convert 25 XRP to drops for me — I need the drop-denominated equivalent to use in an XRPL transaction.","exampleUseCases":[{"title":"Building an XRPL payment transaction","prompt":"I'm constructing an XRPL payment and need to know how many drops equal 12.5 XRP — can you convert that for me?"},{"title":"Interpreting ledger data in XRP","prompt":"I got a balance of 999500000 drops back from the XRPL ledger — what is that in XRP?"},{"title":"Validating user-entered XRP amount","prompt":"A user typed in 0.000001 XRP as a fee — convert that to drops so I can verify it meets the minimum reserve requirement."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:27.253Z","isFirstParty":false,"canonicalSlug":"convert-between-xrp-and-drops-a7fb82f3"}