initAccount
Creates a new account object with default values.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.initAccount()
Or import directly the specific function:
_10import { initAccount } from "@onflow/sdk"_10_10initAccount()
Usage
_10import { initAccount } from "@onflow/sdk"_10_10const account = initAccount();_10console.log(account.addr); // null_10console.log(account.keyId); // null_10console.log(account.role.proposer); // false_10_10// Typically used internally by other functions_10// You'll more commonly use authorization() or prepAccount()