Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

XRPL JSON RPC

node v14.20.1
version: 1.0.0
endpointsharetweet
const fetch = require('node-fetch') const testnet = true const endpoint = testnet ? 'https://testnet-rpc.xrpl-labs.com' : 'https://xrplcluster.com' const command = { "method": "account_tx", "params": [ { "account": "rXUMMaPpZqPutoRszR29jtC8amWq3APkx", "limit": 2 } ] } const call = await fetch(endpoint, { method: 'POST', body: JSON.stringify(command) }) const data = await call.json() console.log(data)
Loading…

no comments

    sign in to comment