Business Accounts are in early access. See Business Accounts for the model.
On React Native the same functions and hooks apply. See React Native Business Accounts for the host origin, key share storage, and step-up specifics on device.
@dynamic-labs-sdk/client/waas, and the matching React hooks from @dynamic-labs-sdk/react-hooks.
Prerequisites
- A Dynamic client initialized with your environment ID (see Creating a Dynamic Client)
- An authenticated user, because account operations act on behalf of the signed-in user
- Business Accounts enabled for your environment
Create an account
createBusinessAccount takes an optional name, externalRef, and metadata, and returns the new account. The caller becomes the owner.
- JavaScript
- React
string
Optional display name for the account.
string
A developer-supplied label for mapping your own org/tenant ID onto this account, and the primary B2B2B2C integration key. Not unique; multiple accounts may share a value.
Record<string, unknown>
Arbitrary key-value metadata to store alongside the account.
List accounts
listBusinessAccounts returns the accounts the current user is a member of, for the active environment. Pass externalRefs to look up accounts by your own org or tenant ID; since externalRef is not unique, each value may match multiple accounts.
- JavaScript
- React
Read one account
getBusinessAccount returns the account plus its members, signers, and wallets.
- JavaScript
- React
Next steps
Add wallets
Create a fresh wallet or link an existing one to the account.
Members & roles
Invite admins and viewers, and transfer ownership.