dynamic_sdk library

Classes

AddBusinessAccountSignerResponse
Response returned after adding a signer to a business account.
BalanceRequestItem
A single balance request item for a specific address and chain.
BaseWallet
BaseWalletProps
BitcoinModule
Module for Bitcoin blockchain operations.
BusinessAccount
Summary representation of a business account.
BusinessAccountApprovalRequirement
How one approval requirement on a proposal is tracking. approvalRequirements on a proposal is authoritative for readiness — do not infer it from counting approvals.
BusinessAccountDetail
Fully-expanded view of a single business account.
BusinessAccountList
Page of business accounts.
BusinessAccountMember
Member of a business account.
BusinessAccountProposal
A governed mutation waiting on consent: what was proposed, who has signed, and how each governance requirement is tracking.
BusinessAccountProposalApprovalRecord
One recorded approval on a proposal. revokedAt is set when the approver withdraws their approval.
BusinessAccountProposalSubject
A user a proposed change is about — the member being added, the signer being removed, the new owner — resolved for display.
BusinessAccountSigner
Signer attached to a business account wallet.
BusinessAccountsModule
Module for business account operations.
BusinessAccountWalletSummary
Compact summary of a wallet owned by a business account.
ClientDebugProps
ClientManifest
ClientManifestDebug
ClientProps
CustomFieldValidationRules
CustomFieldValidValue
DelegatedAccessState
Represents the overall state of delegated access for the current session.
DelegationModule
Module for managing delegated access to WaaS/embedded wallets.
DelegationWalletIdentifier
Identifies a wallet for delegation operations by chain and address.
DeletePasskeyRequest
Request body for deletePasskey.
DeviceRegistrationModal
DeviceRegistrationModule
Module for managing trusted device registration.
DynamicKeychain
Dart wrapper for native keychain operations (Secure Enclave on iOS, KeyStore on Android). Provides P-256 key generation, signing, and management backed by hardware security.
DynamicSDK
DynamicWebviewLoadState
Public projection of the load state, exposed as DynamicSDK.instance.sdk.loadState.
EmailOtpParams
EmbeddedWalletsModule
Module for managing embedded wallets.
EnumValues<T>
EthRequestWithAddressParams
EthRequestWithChainIdParams
GenericNetwork
ImportPrivateKeyResult
Outcome of WaasModule.importPrivateKey.
JwtVerifiedCredential
LegacyWalletMigrationModal
LegacyWalletToMigrate
LocaleModule
Module for managing the SDK's locale and copy translations.
MfaAddDevice
Represents the result of adding a new MFA device.
MfaAuthenticateDevice
Parameters for authenticating with an MFA device.
MfaAuthenticateRecoveryCode
Parameters for authenticating with a recovery code.
MfaCompletionFailure
Represents a failed MFA completion event.
MfaCompletionSuccess
Represents a successful MFA completion event.
MfaCreateToken
Configuration for creating an MFA token during authentication.
MfaDevice
Represents an MFA device associated with a user account.
MfaModule
Module for managing Multi-Factor Authentication (MFA) devices and operations.
MultichainBalanceRequest
Request model for getting multichain balances.
MultichainBalancesResponse
Response model for multichain balances.
NameService
NameServiceData
NativeCurrency
Network
Represents a blockchain network configuration.
NetworkConfiguration
OtpData
PasskeyAuthenticateRequest
Request payload for native passkey authentication.
PasskeyAuthenticateResponse
Response from native passkey authentication.
PasskeyAuthenticateResponseData
Response data for passkey authentication.
PasskeyAuthenticatorSelection
Authenticator selection configuration.
PasskeyCredential
Credential information for passkey operations.
PasskeyPubKeyCredParam
Public key credential parameter.
PasskeyRegisterRequest
Request payload for native passkey registration.
PasskeyRegisterResponse
Response from native passkey registration.
PasskeyRegisterResponseData
Response data for passkey registration.
PasskeyRelyingParty
Relying party information for passkey operations.
PasskeyUser
User information for passkey operations.
PhoneData
PoliciesModule
Module for WaaS policy operations.
PolicyApprovalGroup
A named pool of approvers, referenced by name from eligibleApproverRoles/mandatoryApproverRoles, or matched against the action's initiator via PolicyApprovalRequirementWhen.initiatorRole.
PolicyApprovalRequirement
A signing-quorum approval requirement on a policy layer. requiredApprovals never counts the initiator. satisfied is not modeled — it is a deny-reason fact reported back at sign time.
PolicyApprovalRequirementMinValue
Threshold amount that activates a signing-quorum requirement.
PolicyApprovalRequirementWhen
The conditions a signing-quorum requirement applies under, all ANDed together. An absent field matches everything, not nothing.
PolicyDesugarEntry
Entry of a policy layer's layerContent.rules: either a live rule or a deletion marker.
PolicyDesugarResult
Result of desugaring raw layer entries back into PolicyRules.
PolicyLayerContent
Rules stored on a policy layer.
PolicyLayerResponse
Policy layer returned by a create, upsert or remove operation.
PolicyLayerUpdateActionRequired
Response from a governed business-account policy-layer update.
PolicyLayerUpdateResult
Either the updated policy layer or the governed action required to proceed.
PolicyMaxAmountPerTransaction
Cap on the value of a single transaction, in the smallest unit of the asset.
PolicyResponse
Policy layer read back in its sugared form, plus the rules that have no sugar representation.
PolicyRule
Raw policy rule as stored on a policy layer.
PolicyRuleDeletionMarker
Layer entry standing in for a rule that was removed, kept so the removal stays attributable.
PolicyRuleInput
Policy rule without ruleType, which the rule builders stamp on.
PolicyRules
Sugared surface over a policy layer's rules, one key per concern.
PolicyScope
Policy layer an operation targets: a business account's account layer, a wallet's own layer, or a share set's signer layer.
PolicyValueLimit
Value cap carried by a policy rule, in the smallest unit of the asset.
ProjectSettingsKyc
RegisteredDevice
RequestChannel
SignedSigningQuorumIntent
The intent and its session-key signature produced by signing a signing quorum's intent client side. intent stays a raw map — it is signed verbatim, so re-serializing it can change the bytes.
SigningConsentRequiredContext
The payload a sign request surfaces when the wallet's signing quorum is unmet. The SDK does not retry automatically: INTENT_REQUIRED means sign intent and retry; APPROVALS_REQUIRED means collect approvals on proposalId and resume the proposal.
SignInWithExternalJwtParams
SignMessageContext
Sign context forwarded to the MPC relay policy engine, describing what a raw digest was derived from (e.g. the transaction, user operation or authorization behind it). Required by environments whose signing policy rejects context-less raw signs.
SmsCountryCode
Country code information for SMS-based signers.
SmsOtpParams
SmsOtpParamsTarget
SocialAccountInformation
Information about a social account linked to a Dynamic user profile.
StellarModule
Module for Stellar blockchain operations.
StepUpAuthModule
Module for managing Step-Up Authentication operations.
SuiModule
Module for SUI blockchain operations.
TargetIdentity
Identity used to target a business-account signer.
TargetTarget
TokenBalance
Represents a single token balance.
TonModule
Module for TON blockchain operations.
TronModule
Module for Tron blockchain operations.
UpdateUserReturnPayload
Response returned by AuthModule.updateUser and AuthModule.verifyUserUpdateOtp.
UserFields
UserInterfaceModule
Module for managing Dynamic UI components and flows.
UserPasskey
Equivalent to UserPasskey (id, label, metadata, timestamps, etc.).
UserProfile
VerifyWithExternalJwtParams
WaasModule
Module for WaaS (Wallet-as-a-Service) password operations.
WalletAdditionalAddress
WalletConnectModule
WalletConnectState
State of the WalletConnect module.
WalletDelegatedStatus
Represents the delegation status of a single wallet.
WalletProperties
WalletRecoveryState
Represents the recovery state of a WaaS (Wallet-as-a-Service) wallet.
WalletsModule
Module for managing user wallets and wallet operations.
WcNamespace
Represents a WalletConnect namespace with chains, methods, and events.
WcPeerMetadata
Metadata about a WalletConnect peer (dApp or wallet).
WcSession
Represents an active WalletConnect session.
WcSessionProposal
Represents a WalletConnect session proposal from a dApp.
WcSessionRequest
Represents a session request from a connected dApp.
WebviewLoadOptions
Budgets of the webview load recovery.

Enums

BtcAddressType
Bitcoin address type for a WaaS private-key import.
BusinessAccountMemberRole
Role of a member in a business account.
BusinessAccountProposalStatus
Lifecycle status of a governed proposal.
BusinessAccountSignerIdentifierType
Identifier type used to target a signer identity.
BusinessAccountSignerType
Type of signer attached to a business account wallet.
ChainEnum
Enum representing supported blockchain chains.
CustomFieldType
DelegationStatus
Enum representing the delegation status of a wallet.
EmailOtpParamsDestination
EmbeddedWalletChain
Chain type for embedded wallet creation.
EmbeddedWalletVersionEnum
HardwareWalletEnum
JwtVerifiedCredentialFormatEnum
KycFieldType
LocaleLanguage
Supported language codes that can be passed to LocaleModule.changeLanguage.
LoggerLevel
MfaBackupCodeAcknowledgement
MfaDeviceType
Enumeration of supported MFA device types.
OtpDestination
PasswordSourceTypeEnum
Platform
PolicyRuleKind
Key of a PolicyRules entry, used to name or remove a single rule kind.
PolicyRuleType
Whether a policy rule allows or denies the operations it matches.
ProviderEnum
RawSignHashFunction
Hash applied to (prefix + payload) to reproduce the digest being signed by a SignMessageContextType.rawSign context. Values mirror the hashFunction enum of Dynamic's SignMessageRawSign API model; Enum.name is used as the wire value.
SigningConsentRequiredReason
Why a signing operation was refused and turned into a consent flow. Mirrors the SigningQuorumActionRequired.reason literals sent over the bridge.
SignMessageContextType
The context variant a SignMessageContext describes. Values mirror the field names of Dynamic's SignMessageContext API model; Enum.name is used as the wire key.
SmsOtpParamsDestination
SocialProvider
ThresholdSignatureScheme
Threshold signature scheme for an MPC-backed WaaS wallet.
WaasChain
Chain identifier of the Dynamic WaaS chain set, used by both the WaaS connector and the policies API.
WalletAddressType
WalletProviderEnum
WebviewLoadStatus

Extensions

ChainEnumExtension on ChainEnum
Extension to convert ChainEnum to string values.
DelegationStatusExtension on DelegationStatus
Extension to convert DelegationStatus to/from string values.
PolicyRuleDeprecatedFields on PolicyRule
PolicyRuleInputDeprecatedFields on PolicyRuleInput

Functions

baseWalletFromJson(String str) → BaseWallet
baseWalletPropsFromJson(String str) → BaseWalletProps
baseWalletPropsToJson(BaseWalletProps data) → String
baseWalletToJson(BaseWallet data) → String
clientManifestFromJson(String str) → ClientManifest
clientManifestToJson(ClientManifest data) → String
createBroadcastMessageTransport() → MessageTransport
customFieldTypeFromJson(String str) → CustomFieldType
customFieldTypeToJson(CustomFieldType data) → String
customFieldValidationRulesFromJson(String str) → CustomFieldValidationRules
customFieldValidationRulesToJson(CustomFieldValidationRules data) → String
customFieldValidValueFromJson(String str) → CustomFieldValidValue
customFieldValidValueToJson(CustomFieldValidValue data) → String
emailOtpParamsFromJson(String str) → EmailOtpParams
emailOtpParamsToJson(EmailOtpParams data) → String
embeddedWalletVersionEnumFromJson(String str) → EmbeddedWalletVersionEnum
embeddedWalletVersionEnumToJson(EmbeddedWalletVersionEnum data) → String
ethRequestWithAddressParamsFromJson(String str) → EthRequestWithAddressParams
ethRequestWithAddressParamsToJson(EthRequestWithAddressParams data) → String
ethRequestWithChainIdParamsFromJson(String str) → EthRequestWithChainIdParams
ethRequestWithChainIdParamsToJson(EthRequestWithChainIdParams data) → String
genericNetworkFromJson(String str) → GenericNetwork
genericNetworkToJson(GenericNetwork data) → String
hardwareWalletEnumFromJson(String str) → HardwareWalletEnum
hardwareWalletEnumToJson(HardwareWalletEnum data) → String
jwtVerifiedCredentialFormatEnumFromJson(String str) → JwtVerifiedCredentialFormatEnum
jwtVerifiedCredentialFormatEnumToJson(JwtVerifiedCredentialFormatEnum data) → String
jwtVerifiedCredentialFromJson(String str) → JwtVerifiedCredential
jwtVerifiedCredentialToJson(JwtVerifiedCredential data) → String
kycFieldTypeFromJson(String str) → KycFieldType
kycFieldTypeToJson(KycFieldType data) → String
mfaBackupCodeAcknowledgementFromJson(String str) → MfaBackupCodeAcknowledgement
mfaBackupCodeAcknowledgementToJson(MfaBackupCodeAcknowledgement data) → String
nameServiceDataFromJson(String str) → NameServiceData
nameServiceDataToJson(NameServiceData data) → String
nameServiceFromJson(String str) → NameService
nameServiceToJson(NameService data) → String
nativeCurrencyFromJson(String str) → NativeCurrency
nativeCurrencyToJson(NativeCurrency data) → String
networkConfigurationFromJson(String str) → NetworkConfiguration
networkConfigurationToJson(NetworkConfiguration data) → String
otpDataFromJson(String str) → OtpData
otpDataToJson(OtpData data) → String
otpDestinationFromJson(String str) → OtpDestination
otpDestinationToJson(OtpDestination data) → String
passwordSourceTypeEnumFromJson(String str) → PasswordSourceTypeEnum
passwordSourceTypeEnumToJson(PasswordSourceTypeEnum data) → String
phoneDataFromJson(String str) → PhoneData
phoneDataToJson(PhoneData data) → String
projectSettingsKycFromJson(String str) → ProjectSettingsKyc
projectSettingsKycToJson(ProjectSettingsKyc data) → String
providerEnumFromJson(String str) → ProviderEnum
providerEnumToJson(ProviderEnum data) → String
signInWithExternalJwtParamsFromJson(String str) → SignInWithExternalJwtParams
signInWithExternalJwtParamsToJson(SignInWithExternalJwtParams data) → String
smsOtpParamsFromJson(String str) → SmsOtpParams
smsOtpParamsToJson(SmsOtpParams data) → String
socialProviderFromJson(String str) → SocialProvider
socialProviderToJson(SocialProvider data) → String
userFieldsFromJson(String str) → UserFields
userFieldsToJson(UserFields data) → String
userProfileFromJson(String str) → UserProfile
userProfileToJson(UserProfile data) → String
verifyWithExternalJwtParamsFromJson(String str) → VerifyWithExternalJwtParams
verifyWithExternalJwtParamsToJson(VerifyWithExternalJwtParams data) → String
walletAdditionalAddressFromJson(String str) → WalletAdditionalAddress
walletAdditionalAddressToJson(WalletAdditionalAddress data) → String
walletAddressTypeFromJson(String str) → WalletAddressType
walletAddressTypeToJson(WalletAddressType data) → String
walletPropertiesFromJson(String str) → WalletProperties
walletPropertiesToJson(WalletProperties data) → String
walletProviderEnumFromJson(String str) → WalletProviderEnum
walletProviderEnumToJson(WalletProviderEnum data) → String

Typedefs

MessageTransport = StreamController<Message>

Exceptions / Errors

DynamicSdkException
A rejection that crossed the webview → host bridge, with the structured fields the JS side attached to it preserved instead of flattened into text.
SigningConsentRequiredException
A SigningConsentRequiredError rejection: a sign request was refused because the wallet's signing quorum is unmet. context carries the reason, the proposal id to approve/resume, the unsigned intent, and the requirement tally — everything needed to drive the consent flow.
WebviewFailedToLoadException
Raised on DynamicWebviewLoadState.error once every attempt has timed out. The webview never became ready and nothing further happens on its own.