Skip to main content
Nested-parent onboarding snapshot for a connected parent Safe. Use it after connectAccount to decide which treasury step to show next: child deploy, deposit, or withdraw. Wallet connect stays in your app (WalletConnect, Reown AppKit, Safe App). This method reads chain state and the execution API. It combines child resolution (getSmartWalletAddress), account session registration, per-chain safe-deploy readiness, and getPortfolio. For the full parent-Safe flow, see Nested Safe integration.

Signature

Parameters

Requires SIWE authentication (connectAccount). userAddress must match the authenticated wallet.

Returns

Onboarding flags, suggested next step, and child wallet details when registered.

Return type

Status fields

sessionActive is scoped to the chainId you pass. An account-level session flag alone is not enough: the child can be deployed on Base while Arbitrum still needs a deploySafe completion on that chain.

suggestedStep

If the child is deployed but the session is inactive on the requested chain, suggestedStep is deploy (call deploySafe again). The "ready" variant exists on the type for forward compatibility; current SDK logic returns deploy, deposit, or withdraw.

Errors

Example

Gate treasury UI after connect and refresh when chain or account changes:
Working reference UI: nested Safe demo.