buildSignable
Builds a signable object that can be signed by an authorization function.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.buildSignable(acct, message, ix)
Or import directly the specific function:
_10import { buildSignable } from "@onflow/sdk"_10_10buildSignable(acct, message, ix)
Parameters
acct
- Type:
InteractionAccount
- Description: The account to create the signable for
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; }[]; }; }