• Version 3.0.0
  • Published
  • 16.4 kB
  • 3 dependencies
  • MPL-2.0 license


npm i ethereumjs-account
yarn add ethereumjs-account
pnpm add ethereumjs-account


Encoding, decoding and validation of Ethereum's Account schema



class Account

class Account {}


    constructor(data?: any);

      property balance

      balance: Buffer;

        property codeHash

        codeHash: Buffer;

          property nonce

          nonce: Buffer;

            property stateRoot

            stateRoot: Buffer;

              method getCode

              getCode: (trie: Trie, cb: TrieGetCb) => void;

                method getStorage

                getStorage: (trie: Trie, key: Buffer | string, cb: TrieGetCb) => void;

                  method isContract

                  isContract: () => boolean;

                    method isEmpty

                    isEmpty: () => boolean;

                      method serialize

                      serialize: () => Buffer;

                        method setCode

                        setCode: (
                        trie: Trie,
                        code: Buffer,
                        cb: (err: any, codeHash: Buffer) => void
                        ) => void;

                          method setStorage

                          setStorage: (
                          trie: Trie,
                          key: Buffer | string,
                          val: Buffer | string,
                          cb: () => void
                          ) => void;

                            Package Files (1)

                            Dependencies (3)

                            Dev Dependencies (15)

                            Peer Dependencies (0)

                            No peer dependencies.


                            To add a badge like this badgeto your package's README, use the codes available below.

                            You may also use to create a custom badge linking to

                            • Markdown
                            • HTML
                              <a href=""><img src="" alt=""></a>