@twine-protocol/twine-core v0.1.0 • Docs
twine-js / @twine-protocol/twine-core / fromJSON
fromJSON(json): Promise<Chain | Pulse>
json
Promise
Chain
Pulse
Convert a DAG-JSON encoded twine into a twine instance
This is one of the primary ways to read twine data.
Throws an error if the data is invalid.
string | object
string
object
Promise<Chain | Pulse>
packages/twine-core/src/conversion.ts:175arrow-up-right
Last updated 1 year ago