findOutsideSigners
Identifies signers for the transaction envelope (payer accounts only). This...
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.findOutsideSigners(ix)
Or import directly the specific function:
_10import { findOutsideSigners } from "@onflow/sdk"_10_10findOutsideSigners(ix)
Usage
_15import { findOutsideSigners, initInteraction } from "@onflow/sdk"_15_15const interaction = initInteraction();_15interaction.proposer = "proposer-123";_15interaction.authorizations = ["auth-456"];_15interaction.payer = "payer-789";_15_15const outsideSigners = findOutsideSigners(interaction);_15console.log(outsideSigners); // ["payer-789"]_15// Only the payer signs the envelope_15_15// Multiple payers example_15interaction.payer = ["payer-789", "payer-abc"];_15const multiplePayerSigners = findOutsideSigners(interaction);_15console.log(multiplePayerSigners); // ["payer-789", "payer-abc"]
Parameters
ix
- Type:
Interaction
- Description: The interaction object
Returns
string[]