ethereumjs-account

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

Install

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

Overview

Encoding, decoding and validation of Ethereum's Account schema

Index

Classes

class Account

class Account {}

    constructor

    constructor(data?: any);

      property balance

      balance: any;

        property codeHash

        codeHash: any;

          property nonce

          nonce: any;

            property stateRoot

            stateRoot: any;

              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: () => any;

                        method setCode

                        setCode: (trie: Trie, code: any, cb: (err: any, codeHash: any) => 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.

                            Badge

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

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ethereumjs-account.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/ethereumjs-account)
                            • HTML
                              <a href="https://www.jsdocs.io/package/ethereumjs-account"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>