nitowa 29e48f1403 SLL no verify | il y a 2 ans | |
---|---|---|
src | il y a 2 ans | |
test | il y a 2 ans | |
.drone.yml | il y a 2 ans | |
.gitignore | il y a 2 ans | |
LICENSE.md | il y a 2 ans | |
README.md | il y a 2 ans | |
package-lock.json | il y a 2 ans | |
package.json | il y a 2 ans | |
tsconfig.json | il y a 3 ans |
xrpio is a library that allows you to write and read arbitrary data in 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"