prepAccount
Prepares and configures an account for use in an interaction with a specific...
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.prepAccount(acct, opts)
Or import directly the specific function:
_10import { prepAccount } from "@onflow/sdk"_10_10prepAccount(acct, opts)
Parameters
acct
- Type:
AccountAuthorization
- Description: The account authorization function or account object
_10export type AccountAuthorization =_10 | (AuthorizationFn & Partial<InteractionAccount>)_10 | Partial<InteractionAccount>
opts
(optional)
- Type:
IPrepAccountOpts
- Description: Configuration options including the role for the account
_10interface IPrepAccountOpts {_10 role?: TransactionRole | null_10}
Returns
function