Get access to a DogeNano node in seconds to build and scale your DogeNano application with ease. Support DogeNano RPC, WebSocket and include a powerful DogeNano work server.
DogeNano Work server:https://nodes.nanswap.com/XDG?api_key=YOUR_API_KEY
Send DogeNano 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/XDG',
WORK_URL: 'https://nodes.nanswap.com/XDG',
WS_URL: 'wss://nodes.nanswap.com/ws/?ticker=XDG&api=' + process.env.NODES_API_KEY,
seed: seed,
defaultRep: "xdg_1e4ecrhmcws6kwiegw8dsbq5jstq7gqj7fspjmgiu11q55s6xnsnp3t9jqxf",
customHeaders: headerAuth,
wsSubAll: false, // or true if available in your plan,prefix: "xdg_",
decimal: 26,
})
// Generate 10 derived accountslet accounts = wallet.createAccounts(10)
// ["xdg_xxxxx...", ... ]let hash = await wallet.send({
source: accounts[0], // must be in wallet. destination: "xdg_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 DogeNano 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.