web3-eth-accounts
Index
Classes
Enumerations
Functions
- arrToBufArr
- assertIsBuffer
- bigIntToBuffer
- bigIntToHex
- bigIntToUnpaddedBuffer
- bufArrToArr
- bufferToBigInt
- bufferToHex
- create
- decrypt
- ecrecover
- encrypt
- hashMessage
- intToBuffer
- isAccessList
- isAccessListBuffer
- padToEven
- parseAndValidatePrivateKey
- parseGethGenesis
- privateKeyToAccount
- privateKeyToAddress
- recover
- recoverTransaction
- setLengthLeft
- sign
- signTransaction
- stripHexPrefix
- toBuffer
- toType
- unpadBuffer
- zeros
Interfaces
Type Aliases
- AccessList
- AccessListBuffer
- AccessListBufferItem
- AccessListEIP2930ValuesArray
- AccessListItem
- BigIntLike
- BufferLike
- CasperConfig
- CliqueConfig
- EthashConfig
- FeeMarketEIP1559ValuesArray
- NestedBufferArray
- NestedUint8Array
- PrefixedHexString
- SignFunction
- SignResult
- SignTransactionFunction
- SignTransactionResult
- SignatureObject
- ToBufferInputTypes
- TxData
- TxValuesArray
- TypeOutputReturnType
- TypedTransaction
Variables
Type Aliases
AccessList
AccessListBuffer
AccessListBufferItem
AccessListEIP2930ValuesArray
AccessListItem
Type declaration
address: PrefixedHexString
storageKeys: PrefixedHexString[]
BigIntLike
BufferLike
CasperConfig
CliqueConfig
Type declaration
epoch: number
period: number
EthashConfig
FeeMarketEIP1559ValuesArray
Buffer values array for a FeeMarketEIP1559Transaction
NestedBufferArray
NestedUint8Array
PrefixedHexString
SignFunction
Type declaration
Parameters
data: string
privateKey: string
Returns SignResult
SignResult
SignTransactionFunction
Type declaration
Parameters
transaction: TxData | AccessListEIP2930TxData | FeeMarketEIP1559TxData | Record<string, unknown>
Returns SignTransactionResult
SignTransactionResult
SignatureObject
Type declaration
messageHash: string
r: string
s: string
v: string
ToBufferInputTypes
TxData
Legacy Transaction Data
Type declaration
optionaldata?: BufferLike
This will contain the data of the message or the init of a contract.
optionalgasLimit?: Numbers | Buffer
The transaction’s gas limit.
optionalgasPrice?: Numbers | Buffer | null
The transaction’s gas price.
optionalnonce?: Numbers | Buffer
The transaction’s nonce.
optionalr?: Numbers | Buffer
EC signature parameter.
optionals?: Numbers | Buffer
EC signature parameter.
optionalto?: Address | Buffer | HexString
The transaction’s the address is sent to.
optionaltype?: Numbers
The transaction type
optionalv?: Numbers | Buffer
EC recovery ID.
optionalvalue?: Numbers | Buffer
The amount of Ether sent.
TxValuesArray
Buffer values array for a legacy Transaction
TypeOutputReturnType
Type declaration
0: number
1: bigint
2: Buffer
3: PrefixedHexString
TypedTransaction
Variables
constkeyStoreSchema
Type declaration
properties: { address: { type: string }; crypto: { properties: { cipher: { type: string }; cipherparams: { type: string }; ciphertext: { type: string }; kdf: { type: string }; kdfparams: { type: string }; mac: { type: string }; salt: { type: string } }; required: string[]; type: string }; id: { type: string }; version: { type: string } }
address: { type: string }
type: string
crypto: { properties: { cipher: { type: string }; cipherparams: { type: string }; ciphertext: { type: string }; kdf: { type: string }; kdfparams: { type: string }; mac: { type: string }; salt: { type: string } }; required: string[]; type: string }
properties: { cipher: { type: string }; cipherparams: { type: string }; ciphertext: { type: string }; kdf: { type: string }; kdfparams: { type: string }; mac: { type: string }; salt: { type: string } }
cipher: { type: string }
type: string
cipherparams: { type: string }
type: string
ciphertext: { type: string }
type: string
kdf: { type: string }
type: string
kdfparams: { type: string }
type: string
mac: { type: string }
type: string
salt: { type: string }
type: string
required: string[]
type: string
id: { type: string }
type: string
version: { type: string }
type: string
required: string[]
type: string
Buffer values array for an AccessListEIP2930Transaction