getOrCreateHallidayAAWallet
To retrieve the logged-in user's Halliday Account details, such as their Halliday account address, call getOrCreateHallidayAAWallet()
. This function will return the Smart Account for a user based on the their unique id in your application.
Example Usage
/**
* Call getOrCreateHallidayAAWallet. This function will get or create the Halliday AA wallet,
* that the non-custodial wallet will be the owner of.
*
* Need to call this before any of the below methods to make sure the user
* has a Halliday AA Wallet
*
*/
const getAccountResponse = await hallidayClient.getOrCreateHallidayAAWallet()
Inputs
For SocialLoginClient and EmailOTPClientClasses
No inputs
For ViaSigner and Passkey classes:
Name | Type | Description |
---|---|---|
userInGameId | string | User's id in your application (must be unique) - Required if using ViaSignerClass |
(optional) email | string | The user's email. This parameter is not required if the social login client is used. |
Outputs
Promise to a GetWalletResponse object.
Name | Type | Description |
---|---|---|
blockchain_type | string | The blockchain the user's Halliday Account is on. |
in_game_user_id | string | Your in-app ID for this user |
gas_sponsored | string | How much gas you have sponsored for this user |
sponsorship_limit | string | The upper limit for how much gas you have chosen to sponsor for this user |
account_address | string | The Halliday account address corresponding to this user |
Updated about 1 month ago
What’s Next