Skip to main content

buildSignable

Builds a signable object that can be signed by an authorization function.

Import

You can import the entire package and access the function:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.buildSignable(acct, message, ix)

Or import directly the specific function:


_10
import { buildSignable } from "@onflow/sdk"
_10
_10
buildSignable(acct, message, ix)

Parameters

acct

message

  • Type: string
  • Description: The encoded message to be signed

ix

  • Type: Interaction
  • Description: The interaction object containing transaction details

Returns

{ f_type: string; f_vsn: string; message: string; addr: string; keyId: string | number; roles: { proposer: boolean; authorizer: boolean; payer: boolean; param?: boolean; }; cadence: string; args: any[]; data: {}; interaction: Interaction; voucher: { cadence: string; refBlock: string; computeLimit: number; arguments: any[]; proposalKey: { address: string; keyId: string | number; sequenceNum: number; } | { address?: undefined; keyId?: undefined; sequenceNum?: undefined; }; payer: string; authorizers: string[]; payloadSigs: { address: string; keyId: string | number; sig: string; }[]; envelopeSigs: { address: string; keyId: string | number; sig: string; }[]; }; }


Rate this page