Get access to a Banano node in seconds to build and scale your Banano application with ease. Support Banano RPC, WebSocket and include a powerful Banano work server.
Banano Work server:https://nodes.nanswap.com/BAN?api_key=YOUR_API_KEY
Send Banano with the API:
Example in javascript
const { Wallet } = require('simple-nano-wallet-js');
const { wallet: walletLib} = require('multi-nano-web')
require('dotenv').config();
let headerAuth = { // custom header for authentification"nodes-api-key": process.env.NODES_API_KEY
}
let seed = walletLib.generateLegacy().seed
console.log(seed) // save & backup it somewhere!// initialize walletconst wallet = new Wallet({
RPC_URL: 'https://nodes.nanswap.com/BAN',
WORK_URL: 'https://nodes.nanswap.com/BAN',
WS_URL: 'wss://nodes.nanswap.com/ws/?ticker=BAN&api=' + process.env.NODES_API_KEY,
seed: seed,
defaultRep: "ban_1banexkcfuieufzxksfrxqf6xy8e57ry1zdtq9yn7jntzhpwu4pg4hajojmq",
customHeaders: headerAuth,
wsSubAll: false, // or true if available in your plan,prefix: "ban_",
decimal: 29,
})
// Generate 10 derived accountslet accounts = wallet.createAccounts(10)
// ["ban_xxxxx...", ... ]let hash = await wallet.send({
source: accounts[0], // must be in wallet. destination: "ban_xxxxx...",
amount: wallet.megaToRaw(0.001),
})
Example with hosted wallet
// coming soon - contact us at contact@nanswap.com for more information
Documentation:
Search a command
In order to interact with the Banano API, you can use any language capable of sending HTTP requests. Simply put your nodes API KEY in a "nodes-api-key" http header or with ?api_key=[API KEY]. See the example above.
To interact with Wallet RPC, a signature of the request with your Secret Key Api is required.