Skip to main content
Recovery setup happens after wallet creation. It is not finished by swig.wallets.create(...) alone. Use Add a Guardian After Wallet Creation instead if the wallet already exists and you are enabling recovery later.

Create from a recovery-enabled policy

TypeScript
If the policy is recovery-enabled and the SDK can derive the requester authority and guardian information, create(...) returns recoverySetup / recovery_setup.

What create(...) gives you

For a recovery-enabled flow, the important pieces are:
  • creationTransaction / creation_transaction
  • clientAuthorityTransactions / client_authority_transactions
  • operatorSignedTransactions / operator_signed_transactions
  • recoverySetup / recovery_setup

Prepare the follow-up setup

After wallet creation is submitted, prepare recovery setup:
TypeScript
That returns:
  • addAuthorityTransaction / add_authority_transaction
  • configureRecoveryTransaction / configure_recovery_transaction

Who signs what

Treat operatorSignedTransactions / operator_signed_transactions as already authority-signed and submit them through the fee payer or sponsor path.

Advanced option

targetRoleId / target_role_id is available when you intentionally want recovery bound to a specific non-default role.