Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
nitowa 3d0d456db3 rename drone.yml to .drone.yml 2 gadus atpakaļ
src rebase to npm-packages, add README and LICENSE 2 gadus atpakaļ
test drone config and doc generation 2 gadus atpakaļ
.drone.yml rename drone.yml to .drone.yml 2 gadus atpakaļ
.gitignore update testnet node address because it moved 3 gadus atpakaļ
LICENSE.md rebase to npm-packages, add README and LICENSE 2 gadus atpakaļ
README.md drone config and doc generation 2 gadus atpakaļ
getTestnetWallet.js update testnet node address because it moved 3 gadus atpakaļ
package-lock.json rebase to npm-packages, add README and LICENSE 2 gadus atpakaļ
package.json drone config and doc generation 2 gadus atpakaļ
tsconfig.json update testnet node address because it moved 3 gadus atpakaļ

README.md

Overview

Build Status Current Version Weekly Downloads License Type

xrpio is a library that allows you to write and read arbitrary data in the ripple blockchain.

How to install

npm i xrpio

Quickstart

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"

Full documentation