|  | 3 年之前 | |
|---|---|---|
| src | 3 年之前 | |
| test | 3 年之前 | |
| .gitignore | 3 年之前 | |
| LICENSE.md | 3 年之前 | |
| README.md | 3 年之前 | |
| drone.yml | 3 年之前 | |
| getTestnetWallet.js | 3 年之前 | |
| package-lock.json | 3 年之前 | |
| package.json | 3 年之前 | |
| tsconfig.json | 3 年之前 | 
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"