@sensio/op-sn-save-statements
TypeScript icon, indicating that this package has built-in type declarations

0.4.8-alpha.4 • Public • Published

@sensio/op-sn-save-statements

Blockchain Version bafy2bzacecmqyut2oozadzigqsggrhkqxd2fxovubcy4djibfyci6iq6t4s4u

Description

Save the given statements to the Sensio Network. This operation waits until the records are in finalized state. Accepts the list of claims with the list of signatures for each claim. Mapping is done with the index of the list so param1[0] and param2[0]. If there are mismatches in the either of the params this operation will fail. Meaning that param1.length === param2.length

Links and Repo

Install

# install latest version
yarn add @sensio/op-sn-save-statements

# or specific version
yarn add @sensio/op-sn-save-statements@0.1.0

Usage

import snSaveStatements from '@sensio/op-sn-save-statements'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snSaveStatements([{data: dataAsUintArray, decode: ()=> dataAsBuffer}])

Contributing

PRs accepted.

License

Longer version is in LICENSE file

Apache-2.0 © Sensio Group

Package Sidebar

Install

npm i @sensio/op-sn-save-statements

Weekly Downloads

0

Version

0.4.8-alpha.4

License

Apache-2.0

Unpacked Size

38.1 kB

Total Files

27

Last publish

Collaborators

  • woss