Test a Monero checkout URI at atomic-unit precision
Parsing a payment URI exercises amount conversion and percent decoding before any funds move. A small nonzero amount is a useful fixture for detecting decimal rounding.
Build a ten-atomic-unit fixture
Replace only the address token with a valid address for the test network. The URI amount is decimal XMR. Its last nonzero digit corresponds to ten atomic units and the recipient name contains an encoded space. POST this example to /json_rpc on monero-wallet-rpc.
{
"jsonrpc": "2.0",
"id": "guide",
"method": "parse_uri",
"params": {
"uri": "monero:<address>?tx_amount=0.000000000010&recipient_name=Lab%20desk"
}
}
Assert semantic fields after parsing
Expect result.uri.amount to equal integer 10 and the recipient name to read Lab desk. Inspect reported unknown parameters before assuming your extra checkout fields have meaning to the wallet. The recipient name is supplied by the URI creator and is not authenticated identity information.