Skip to content
Embedded Wallet
Integrations
Web3.js

Web3.js is another Ethereum library like Ether.js. Below is an example of how to use Simple Crypto's wallet with web3.js.

import Web3 from "web3";
import SimpleCryptoSDK from "@simplecrypto/wallet-sdk";

const simpleCryptoWallet = new SimpleCryptoSDK();

const web3 = new Web3(simpleCryptoWallet);

// Example of how to prompt the user to sign in with web3.js
const [address] = await web3.eth.requestAccounts();
Last updated on February 4, 2023