Creates a new Account
The created Account
Create an account using the default WalletSet and Chain
const account = await client.createAccount() Copy
const account = await client.createAccount()
Create an account on the Polygon Amoy chain:
const account = await client.createAccount({ chain: MATIC_AMOY }) Copy
const account = await client.createAccount({ chain: MATIC_AMOY })
Create an account under a specific WalletSet:
const account = await client.createAccount({ walletSetId: '00000000-0000-0000-0000-000000000000',}); Copy
const account = await client.createAccount({ walletSetId: '00000000-0000-0000-0000-000000000000',});
Create an account with the same address under a different chain
const sourceAccount = await client.createAccount({ chain: MATIC_AMOY })const account = await client.createAccount({ account: sourceAccount }) Copy
const sourceAccount = await client.createAccount({ chain: MATIC_AMOY })const account = await client.createAccount({ account: sourceAccount })
Creates a new Account