Integrate Embedded Wallets with the StarkEx Blockchain
While using the Embedded Wallets Web SDK (formerly Web3Auth) for a non-EVM chain like StarkEx, you can get the user's private key from the provider. Using this private key, you can use the corresponding libraries of the blockchain to make blockchain calls like getting the user's account, fetching balance, sign transaction, send transaction, read from and write to the smart contract, etc. We have highlighted a few methods here to get you started quickly.
note
The SDKs are now branded as MetaMask Embedded Wallet SDKs (formerly Web3Auth Plug and Play SDKs). Package names and APIs remain Web3Auth (for example, Web3Auth React SDK), and code snippets may reference web3auth identifiers.
Installation
- npm
- Yarn
- pnpm
- Bun
npm install --save web3 bn.js elliptic @starkware-industries/starkex-js @starkware-industries/starkware-crypto-utils
yarn add web3 bn.js elliptic @starkware-industries/starkex-js @starkware-industries/starkware-crypto-utils
pnpm add web3 bn.js elliptic @starkware-industries/starkex-js @starkware-industries/starkware-crypto-utils
bun add web3 bn.js elliptic @starkware-industries/starkex-js @starkware-industries/starkware-crypto-utils