Support Brainblocks - Buy Our Official Merch Here Using Code "paywithnano" For 10% Off!

brainblocks - instant, easy nano checkout


1. Try the button

Click the button and try sending 0.001 NANO to the address


2. Copy and paste the code

Place the code somewhere on your site, and make sure to handle successful payments

<div id="nano-button"></div>

<script src="https://brainblocks.io/brainblocks.min.js"></script>
<script>
    // Render the Nano button

    brainblocks.Button.render({

        // Pass in payment options
        payment: {
            destination: 'nano_1brainb3zz81wmhxndsbrjb94hx3fhr1fyydmg6iresyk76f3k7y7jiazoji',
            currency:    'rai',
            amount:      '1000'
        },

        // Handle successful payments
        onPayment: function(data) {
            console.log('Payment successful!', data.token);
        }

    }, '#nano-button');
</script>

Supported currencies:

aud, brl, cad, chf, clp, cny, czk, dkk, eur, gbp, hkd, huf, idr, ils, inr, jpy, krw, mxn, myr, nok, nzd, php, pkr, pln, rub, sek, sgd, thb, try, usd, twd, zar


3. Verify transaction

Call the brainblocks api to verify the transaction. Make sure the transaction is fulfilled, the amount, currency and destination match what you expect, and the token is unique (to avoid replays).

> curl https://brainblocks.io/api/session/<token>/verify

{
    "token": "ZXlKaGJHY...",
    "destination": "xrb_164xa...",
    "currency": "rai",
    "amount": "1000",
    "amount_rai": 1000,
    "received_rai": 1000,
    "fulfilled": true,
    "send_block": "0B36663...",
    "sender": "xrb_1jnat..."
}

Bugs / support requests | Read more about BrainBlocks | WooCommerce Plugin
iOS Beta | Twitter
Contact: contact@brainblocks.io

Donate: nano_1brainb3zz81wmhxndsbrjb94hx3fhr1fyydmg6iresyk76f3k7y7jiazoji

BrainBlocks Representative: nano_1brainb3zz81wmhxndsbrjb94hx3fhr1fyydmg6iresyk76f3k7y7jiazoji

Core Contributors


Co-Founder: Daniel Brain
Co-Founder: Ty Schenk
Designer: Jill Robinson

Terms and Conditions | Privacy Policy