|
|
преди 3 години | |
|---|---|---|
| src | преди 3 години | |
| test | преди 4 години | |
| .gitignore | преди 4 години | |
| LICENSE.md | преди 3 години | |
| README.md | преди 3 години | |
| getTestnetWallet.js | преди 4 години | |
| package-lock.json | преди 3 години | |
| package.json | преди 3 години | |
| tsconfig.json | преди 4 години |
xrpio is a library that allows you to write and read arbitrary data to the ripple blockchain.
npm i xrpio
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"