Blade Airdrop integration

Blade Wallet Airdrop

Getting started

  1. Find the file "index[hash].js" in "Docs" folder, download it.

  2. Fit into your project by init script or add "script" tag to your markup with the path to your file. Example 👇.

  <script src="./scripts/index[hash].js"></script>
  1. Create a tag in your markup that contains attributes with parameters. Example 👇

  <div
    id="bladeNFTAirdrop"
    data-use-testnet="0"
    data-dapp-code="1234"
    data-dapp-nonce="1234"
    data-dapp-secret="1234"
  >
  </div>
  1. In case of dynamic page renderer (e.g. React router) you need to call the function init() after the page is rendered. Example 👇

  window.bladeAirdrop?.init();
TagValue

id

"bladeNFTAirdrop" (required)

data-use-testnet

number (1-true/0-false) (required)

data-dapp-code

string (required)

data-dapp-nonce

string (optional)

data-dapp-secret

string (optional)

data-disable-installing-app

boolean (optional)

data-disable-overlay

boolean (optional)

data-overlay-message

string (optional)

To get your personal dApp code, contact us: support@bladewallet.io / contact page.

Demo / local testing

Check out our Demo or start local version: download / clone project, and

npm install
npm run dev

Last updated