nitowa 29e48f1403 SLL no verify | 2 anni fa | |
---|---|---|
src | 2 anni fa | |
test | 2 anni fa | |
.drone.yml | 2 anni fa | |
.gitignore | 2 anni fa | |
LICENSE.md | 2 anni fa | |
README.md | 2 anni fa | |
package-lock.json | 2 anni fa | |
package.json | 2 anni fa | |
tsconfig.json | 3 anni fa |
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"