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
create(...) returns recoverySetup /
recovery_setup.
What create(...) gives you
For a recovery-enabled flow, the important pieces are:
creationTransaction/creation_transactionclientAuthorityTransactions/client_authority_transactionsoperatorSignedTransactions/operator_signed_transactionsrecoverySetup/recovery_setup
Prepare the follow-up setup
After wallet creation is submitted, prepare recovery setup:TypeScript
addAuthorityTransaction/add_authority_transactionconfigureRecoveryTransaction/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.
