Docs

privateKeyToAccount

Get an Account object from a private key.

Example

import { privateKeyAccount } from "thirdweb/wallets";
const wallet = privateKeyAccount({
client,
privateKey: "...",
});

Parameters

Returns

The Account object that represents the private key