← Back
Nano.to Blog

Nano.to Checkout - Create Elaborate Nano Applications

Basic Usage

const axios = require('axios');

axios.post('https://rpc.nano.to', {
  "action": "checkout",
  "address": "@faucet", // Your Address or Nano.to Username
  "random": "true",
  "amount": "0.133"
}).then((res) => {
  console.log(res.data);
});

Response:

{
  "id": "b472b6a6",
  "browser": "https://nano.to/id_b472b6a6",
  "json": "https://api.nano.to/checkout/b472b6a6",
  "check": "https://api.nano.to/check/b472b6a6",
  "address": "nano_1q3q7x8r...yr51qsdkm8g45", // Your Address
  "amount": "0.133",
  "amount_raw": "133000000000000000000000000000",
  "qrcode": "data:image/png;base64,iVBORw0KGg...Jggg=="
}

Documentation

https://docs.nano.to/checkout

Nano.to Support

Bugs, Questions & Installation Support:

More Articles