|
|
il y a 3 ans | |
|---|---|---|
| src | il y a 3 ans | |
| test | il y a 4 ans | |
| .gitignore | il y a 4 ans | |
| LICENSE.md | il y a 3 ans | |
| README.md | il y a 3 ans | |
| getTestnetWallet.js | il y a 4 ans | |
| package-lock.json | il y a 3 ans | |
| package.json | il y a 3 ans | |
| tsconfig.json | il y a 4 ans |
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"