Sub Accounts
MOSS supports the ability for a single signing key to support multiple wallet addresses.
When you connect an account which has sub-accounts, you are asked which account you wish to use with the app. After selecting, the sub-account wallet address is given to the app.
Signing#
The key you connect with has access to your smart account wallet on chain. When creating a sub-account, a new smart account wallet is created and the main smart account wallet is granted admin permissions.
This approach allows you to have multiple passkeys, recovery keys or other authentication methods access your main account and then have your main account sign requests for sub-accounts.
When executing a transaction on a sub-account, it contains a request for it to be executed by the main account. You sign using your current key which has access to the main account which then resolves correctly on chain.
The actual transaction on chain shows as being from the sub-account as you would expect.
Gas#
It is not necessary for a sub-account to have gas. The main account can act as its own paymaster for its sub-accounts when creating and signing transactions.
If a sub-account has a supported gas token, that gas will be used instead of the main account.
As with signing, this is completely transparent on chain with the resulting transaction showing as being executed by the sub-account.
Moving Funds Between Accounts#
On the portfolio screen of the wallet, you can use the Send action and then One of your accounts to transfer
funds between your sub-accounts and your main account.