diff --git a/packages/web3-types/CHANGELOG.md b/packages/web3-types/CHANGELOG.md index 2dedcbca907..bad31162ce7 100644 --- a/packages/web3-types/CHANGELOG.md +++ b/packages/web3-types/CHANGELOG.md @@ -181,4 +181,5 @@ Documentation: ### Added -- Adds missing exported type `AbiItem` from 1.x to v4 for compatabiltiy (#6678) \ No newline at end of file +- Adds missing exported type `AbiItem` from 1.x to v4 for compatabiltiy (#6678) +- Updated type `Web3EthInterface.accounts` to includes `privateKeyToAccount`,`privateKeyToAddress`,and `privateKeyToPublicKey` (#6762) diff --git a/packages/web3/src/types.ts b/packages/web3/src/types.ts index fb14e6b2e1a..542af9ceab4 100644 --- a/packages/web3/src/types.ts +++ b/packages/web3/src/types.ts @@ -75,6 +75,9 @@ export interface Web3EthInterface extends Eth { accounts: { create: () => Web3Account; privateKeyToAccount: (privateKey: Uint8Array | string) => Web3Account; + privateKeyToAddress: (privateKey: Bytes) => string; + privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string; + parseAndValidatePrivateKey:(data: Bytes, ignoreLength?: boolean) => Uint8Array; signTransaction: ( transaction: Transaction, privateKey: Bytes,