Skip to main content

findOutsideSigners

Identifies signers for the transaction envelope (payer accounts only). This...

Import

You can import the entire package and access the function:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.findOutsideSigners(ix)

Or import directly the specific function:


_10
import { findOutsideSigners } from "@onflow/sdk"
_10
_10
findOutsideSigners(ix)

Usage


_15
import { findOutsideSigners, initInteraction } from "@onflow/sdk"
_15
_15
const interaction = initInteraction();
_15
interaction.proposer = "proposer-123";
_15
interaction.authorizations = ["auth-456"];
_15
interaction.payer = "payer-789";
_15
_15
const outsideSigners = findOutsideSigners(interaction);
_15
console.log(outsideSigners); // ["payer-789"]
_15
// Only the payer signs the envelope
_15
_15
// Multiple payers example
_15
interaction.payer = ["payer-789", "payer-abc"];
_15
const multiplePayerSigners = findOutsideSigners(interaction);
_15
console.log(multiplePayerSigners); // ["payer-789", "payer-abc"]

Parameters

ix

  • Type: Interaction
  • Description: The interaction object

Returns

string[]


Rate this page