b4169b1bbda9ecf720edb13adb77d1141c2803d2
Overview
xrpio is a library that allows you to write and read arbitrary data to the ripple blockchain.
How to install
npm i xrpio
Quickstart
import {treeRead, treeWrite} from 'xrpio'
const api = new RippleAPI({ server: "..." })
await api.connect()
const dataRootHash = await treeWrite(api, "Arbitrary string data 123", {address: "Sender address", secret: "Sender private key"}, "Receiver address")
const data = await treeRead(api, [dataRootHash])
console.log(data) //"Arbitrary string data 123"
Full documentation
Description
Languages
TypeScript
98.4%
JavaScript
1.1%
HTML
0.5%