createChain

@twine-protocol/twine-builder v0.1.0Docs


twine-js / @twine-protocol/twine-builder / createChain

Function: createChain()

createChain<M>(arg0, signer, hasher): Promise<Chain<M>>

Create a new chain

Note: The only supported hash function is SHA3-512 at the moment

Type Parameters

Type Parameter

M extends AnyMap

Parameters

Parameter
Type
Default value
Description

arg0

undefined

The chain content

signer

Signer

undefined

The signer

hasher

MultihashHasher<number>

sha3512

The hasher

Returns

Promise<Chain<M>>

The chain as a Twine object

Defined in

factory.ts:85

Last updated