Get access to a RaiblocksOne node in seconds to build and scale your RaiblocksOne application with ease. Support RaiblocksOne RPC, WebSocket and include a powerful RaiblocksOne work server.
RaiblocksOne Work server:https://nodes.nanswap.com/XRO?api_key=YOUR_API_KEY
Send RaiblocksOne 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/XRO',
WORK_URL: 'https://nodes.nanswap.com/XRO',
WS_URL: 'wss://nodes.nanswap.com/ws/?ticker=XRO&api=' + process.env.NODES_API_KEY,
seed: seed,
defaultRep: "xro_1nanswapnscbjjr6nd8bjbyp7o3gby1r8m18rbmge3mj8y5bihh71sura9dx",
customHeaders: headerAuth,
wsSubAll: false, // or true if available in your plan,prefix: "xro_",
decimal: 30,
})
// Generate 10 derived accountslet accounts = wallet.createAccounts(10)
// ["xro_xxxxx...", ... ]let hash = await wallet.send({
source: accounts[0], // must be in wallet. destination: "xro_xxxxx...",
amount: wallet.megaToRaw(0.001),
})
Example with hosted wallet
// coming soon - contact us at [email protected] for more information
Documentation:
Search a command
In order to interact with the RaiblocksOne 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.