Private key
Connect to your app with a private key.
Usage
import { PrivateKeyWallet } from "@thirdweb-dev/wallets";
// can be any ethers.js signer
const privateKey = env.process.PRIVATE_KEY;
const wallet = new PrivateKeyWallet(privateKey);
wallet.connect();
Configuration
privateKey
The private key to use for signing transactions.
chain (optional)
The chain or rpc url to connect to when querying the blockchain directly through this wallet.
thirdwebApiKey (optional)
The api key for using the default thirdweb rpcs.
Methods
Inherhits all the public methods from the AbstractWallet
class.