Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
nitowa df833a1084 fix doc generation 2 år sedan
src Fix broken test case 2 år sedan
test Fix broken test case 2 år sedan
.drone.yml rename drone.yml to .drone.yml 2 år sedan
.gitignore fix doc generation 2 år sedan
LICENSE.md rebase to npm-packages, add README and LICENSE 2 år sedan
README.md drone config and doc generation 2 år sedan
package-lock.json fix doc generation 2 år sedan
package.json fix doc generation 2 år sedan
tsconfig.json update testnet node address because it moved 3 år sedan

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