Docs

privateKeyToAccount

Get an Account object from a private key.

Example

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

Parameters

Returns

The Account object that represents the private key