Skip to main content

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:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.prepAccount(acct, opts)

Or import directly the specific function:


_10
import { prepAccount } from "@onflow/sdk"
_10
_10
prepAccount(acct, opts)

Parameters

acct

  • Type: AccountAuthorization
  • Description: The account authorization function or account object

_10
export type AccountAuthorization =
_10
| (AuthorizationFn & Partial<InteractionAccount>)
_10
| Partial<InteractionAccount>

opts (optional)

  • Type: IPrepAccountOpts
  • Description: Configuration options including the role for the account

_10
interface IPrepAccountOpts {
_10
role?: TransactionRole | null
_10
}

Returns

function


Rate this page