nitowa 6540060942 remove readme.md | 2年前 | |
---|---|---|
src | 2年前 | |
test | 3年前 | |
.gitignore | 3年前 | |
LICENSE.md | 2年前 | |
README.md | 2年前 | |
getTestnetWallet.js | 3年前 | |
package-lock.json | 2年前 | |
package.json | 2年前 | |
tsconfig.json | 3年前 |
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"