Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
nitowa b78a1ca6bc fix exporting and doc generation missing types il y a 2 ans
src fix exporting and doc generation missing types il y a 2 ans
test fix exporting and doc generation missing types il y a 2 ans
.drone.yml npm access token il y a 2 ans
.gitignore fix doc generation il y a 2 ans
LICENSE.md rebase to npm-packages, add README and LICENSE il y a 2 ans
README.md drone config and doc generation il y a 2 ans
package-lock.json fix exporting and doc generation missing types il y a 2 ans
package.json fix exporting and doc generation missing types il y a 2 ans
tsconfig.json update testnet node address because it moved il y a 3 ans

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