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
create(...) returns recoverySetup.
What create(...) gives you
For a recovery-enabled flow, the important pieces are:
creationTransactionclientAuthorityTransactionsoperatorSignedTransactionsrecoverySetup
Prepare the follow-up setup
After wallet creation is submitted, prepare recovery setup:addAuthorityTransactionconfigureRecoveryTransaction
Who signs what
| Transaction | Who signs |
|---|---|
creationTransaction | fee payer or sponsor path |
addAuthorityTransaction | current wallet authority |
configureRecoveryTransaction | backend recovery operator already signs it |
operatorSignedTransactions again.
Advanced option
targetRoleId is available when you intentionally want recovery bound to a
specific non-default role.
