JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q52262F
  • License Apache-2.0

Flow SDK Send

Package Exports

  • @onflow/send

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@onflow/send) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@onflow/send

Sends Interactions to Flow returning a Response.

Is available as part of @onflow/sdk

Status

  • Last Updated: April 21st 2020
  • Stable: Yes
  • Risk of Breaking Change: Low (If taking into account the known upcoming changes)

Other than taking on the reponsibility of unpacking the JSON-CDC encodedData in the response, this package is nearing its first major release.

Known Upcoming Changes:

  • Send will be unpacking the JSON-CDC encodedData

Install

npm install --save @onflow/send

Usage

import {send} from "@onflow/send"

const interaction = ...

const response = await send(interaction, {
  node: "Access Node Url"
})