types
Index
References
Enumerations
Classes
Interfaces
- AbiCoderStruct
- AbiOutput
- AbiStruct
- AccessListEntry
- AccountObject
- BaseTransactionAPI
- BlockBase
- BlockHeaderOutput
- BlockInput
- BlockOutput
- Common
- CompileResultAPI
- ContractInitOptions
- CustomChain
- DecodedParams
- EIP1193Provider
- Eip712TypeDetails
- Eip712TypedData
- EthSubscription
- FeeData
- FeeHistoryBase
- Filter
- JsonRpcError
- JsonRpcNotification
- JsonRpcOptionalRequest
- JsonRpcRequest
- JsonRpcResponseWithError
- JsonRpcResponseWithResult
- JsonRpcSubscriptionResult
- JsonRpcSubscriptionResultOld
- LegacyRequestProvider
- LegacySendAsyncProvider
- LegacySendProvider
- Log
- LogBase
- LogsInput
- LogsOutput
- MetaMaskProvider
- NonPayableCallOptions
- PayableCallOptions
- PopulatedUnsignedBaseTransaction
- PopulatedUnsignedEip1559Transaction
- PopulatedUnsignedEip2930Transaction
- PostInput
- PostOutput
- Proof
- ProviderConnectInfo
- ProviderInfo
- ProviderMessage
- ProviderRpcError
- ReceiptInput
- ReceiptOutput
- SignedTransactionInfoAPI
- SimpleProvider
- SocketRequestItem
- StorageProof
- SubscriptionParams
- SyncInput
- SyncOutput
- Transaction
- Transaction1559SignedAPI
- Transaction1559UnsignedAPI
- Transaction2930SignedAPI
- Transaction2930UnsignedAPI
- TransactionCall
- TransactionCallAPI
- TransactionForAccessList
- TransactionInfo
- TransactionInput
- TransactionLegacySignedAPI
- TransactionLegacyUnsignedAPI
- TransactionReceiptBase
- TransactionWithFromAndToLocalWalletIndex
- TransactionWithFromLocalWalletIndex
- TransactionWithToLocalWalletIndex
- Web3APIPayload
- Web3APIRequest
- Web3AccountProvider
- Web3BaseWalletAccount
- Web3DeferredPromiseInterface
- Web3Error
- Withdrawals
Type Aliases
- AbiBaseFragment
- AbiConstructorFragment
- AbiErrorFragment
- AbiEventFragment
- AbiFallbackFragment
- AbiFragment
- AbiFunctionFragment
- AbiInput
- AbiItem
- AbiParameter
- AccessList
- AccessListResult
- Address
- ArrayToIndexObject
- Block
- BlockAPI
- BlockNumberOrTag
- BlockTag
- ByteTypes
- Bytes
- Cipher
- CipherOptions
- Components
- ConnectionEvent
- ContractAbi
- ContractConstructor
- ContractConstructorArgs
- ContractEvent
- ContractEvents
- ContractMethod
- ContractMethodInputParameters
- ContractMethodOutputParameters
- ContractMethods
- ConvertToNumber
- DataFormat
- Eip1193Compatible
- Eip1193EventName
- EncodingTypes
- EthExecutionAPI
- EthPersonalAPI
- FeeHistory
- FeeHistoryResultAPI
- FilterAbis
- FilterParams
- FilterResultsAPI
- FixedSizeArray
- FormatType
- GrowToSize
- Hardfork
- HexString
- HexString16Bytes
- HexString256Bytes
- HexString32Bytes
- HexString8Bytes
- HexStringBytes
- HexStringSingleByte
- IndexKeysForArray
- JsonEventInterface
- JsonFunctionInterface
- JsonRpcBatchRequest
- JsonRpcBatchResponse
- JsonRpcId
- JsonRpcIdentifier
- JsonRpcPayload
- JsonRpcResponse
- JsonRpcResult
- KeyStore
- LogAPI
- MatchPrimitiveType
- Mutable
- NumberTypes
- Numbers
- Optional
- PBKDF2SHA256Params
- PopulatedUnsignedTransaction
- PrimitiveAddressType
- PrimitiveBooleanType
- PrimitiveBytesType
- PrimitiveIntegerType
- PrimitiveStringType
- PrimitiveTupleType
- ProviderAccounts
- ProviderChainId
- Receipt
- ScryptParams
- Sha3Input
- SupportedProviders
- SyncingStatusAPI
- Topic
- TransactionHash
- TransactionInfoAPI
- TransactionOutput
- TransactionReceipt
- TransactionReceiptAPI
- TransactionSignedAPI
- TransactionUnsignedAPI
- TransactionWithSenderAPI
- TypedObject
- TypedObjectAbbreviated
- Uint
- Uint256
- Uncles
- ValidChains
- ValueTypes
- Web3APIMethod
- Web3APIParams
- Web3APIReturnType
- Web3APISpec
- Web3BaseProviderConstructor
- Web3Eip1193ProviderEventCallback
- Web3EthExecutionAPI
- Web3NetAPI
- Web3ProviderEventCallback
- Web3ProviderMessageEventCallback
- Web3ProviderRequestCallback
- Web3ProviderStatus
- Web3ValidationErrorObject
Variables
References
ContractAbiWithSignature
ContractOptions
EventLog
SignResult
SignTransactionResult
SignatureObject
Enumerations
BlockTags
COMMITTED
EARLIEST
FINALIZED
LATEST
PENDING
SAFE
FMT_BYTES
HEX
UINT8ARRAY
FMT_NUMBER
BIGINT
HEX
NUMBER
STR
HardforksOrdered
altair
arrowGlacier
bellatrix
berlin
byzantium
capella
chainstart
constantinople
dao
frontier
grayGlacier
homestead
istanbul
london
merge
muirGlacier
petersburg
shanghai
spuriousDragon
tangerineWhistle
Classes
abstractWeb3BaseProvider
Type parameters
- API: Web3APISpec = EthExecutionAPI
constructor
Type parameters
- API: unknown = EthExecutionAPI
Returns Web3BaseProvider<API>
[symbol]
Returns boolean
asEIP1193Provider
Returns Eip1193Compatible<API>
A new instance of the provider with the request method fully compatible with EIP-1193
abstractconnect
Returns void
abstractdisconnect
Parameters
optionalcode: number
optionaldata: string
Returns void
abstractgetStatus
Returns Web3ProviderStatus
abstracton
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
abstractonce
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
optionalabstractremoveAllListeners
Parameters
type: string
Returns void
abstractremoveListener
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
abstractrequest
Type parameters
- Method: string
- ResultType = unknown
Parameters
args: Web3APIPayload<API, Method>
Returns Promise<JsonRpcResponseWithResult<ResultType>>
abstractreset
Returns void
send
Type parameters
- ResultType = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
Request Payload
callback: (err: null | Error, response?: JsonRpcResponse<ResultType, JsonRpcResult>) => void
Callback
Returns void
sendAsync
Type parameters
- R = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
Request Payload
Returns Promise<JsonRpcResponse<R, JsonRpcResult>>
abstractsupportsSubscriptions
Returns boolean
staticisWeb3Provider
Parameters
provider: unknown
Returns boolean
abstractWeb3BaseWallet
Type parameters
constructor
Type parameters
Parameters
accountProvider: Web3AccountProvider<T>
Returns Web3BaseWallet<T>
abstractadd
Parameters
account: string | T
Returns this
abstractclear
Returns this
abstractcreate
Parameters
numberOfAccounts: number
Returns this
abstractdecrypt
Parameters
encryptedWallet: KeyStore[]
password: string
optionaloptions: Record<string, unknown>
Returns Promise<Web3BaseWallet<T>>
abstractencrypt
Parameters
password: string
optionaloptions: Record<string, unknown>
Returns Promise<KeyStore[]>
abstractget
Parameters
addressOrIndex: string | number
Returns undefined | T
abstractload
Parameters
password: string
optionalkeyName: string
Returns Promise<Web3BaseWallet<T>>
abstractremove
Parameters
addressOrIndex: string | number
Returns boolean
abstractsave
Parameters
password: string
optionalkeyName: string
Returns Promise<boolean>
Interfaces
AbiCoderStruct
optionalcomponents
name
type
AbiOutput
optionalcomponents
optionalinternalType
name
type
AbiStruct
name
type
AccessListEntry
optionalreadonlyaddress
optionalreadonlystorageKeys
AccountObject
readonlyaccountProof
readonlybalance
readonlycodeHash
readonlynonce
readonlystorageHash
readonlystorageProof
BaseTransactionAPI
optionalreadonlychainId
optionalreadonlydata
readonlygas
optionalreadonlyhash
readonlyinput
readonlynonce
optionalreadonlyto
readonlytype
readonlyvalue
BlockBase
Type parameters
- ByteType
- HexStringType
- NumberType
- extraDataType
- TransactionTypes
- logsBloomType
optionalreadonlybaseFeePerGas
optionalreadonlydifficulty
readonlyextraData
readonlygasLimit
readonlygasUsed
optionalreadonlyhash
optionalreadonlylogsBloom
readonlyminer
readonlymixHash
readonlynonce
readonlynumber
readonlyparentHash
readonlyreceiptsRoot
readonlysha3Uncles
readonlysize
readonlystateRoot
readonlytimestamp
readonlytotalDifficulty
readonlytransactions
readonlytransactionsRoot
readonlyuncles
BlockHeaderOutput
optionalreadonlyauthor
optionalreadonlybaseFeePerGas
optionalreadonlyblobGasUsed
optionalreadonlydifficulty
optionalreadonlyexcessBlobGas
optionalreadonlyexcessDataGas
optionalreadonlyextraData
readonlygasLimit
readonlygasUsed
optionalreadonlyhash
optionalreadonlylogsBloom
optionalreadonlyminer
optionalreadonlymixHash
optionalreadonlynonce
optionalreadonlynumber
optionalreadonlyparentBeaconBlockRoot
optionalreadonlyparentHash
optionalreadonlyreceiptsRoot
readonlysha3Uncles
optionalreadonlysize
optionalreadonlystateRoot
readonlytimestamp
optionalreadonlytotalDifficulty
optionalreadonlytransactions
optionalreadonlytransactionsRoot
optionalreadonlyuncles
optionalreadonlywithdrawals
optionalreadonlywithdrawalsRoot
BlockInput
optionalreadonlybaseFeePerGas
optionalreadonlydifficulty
readonlygasLimit
readonlygasUsed
optionalreadonlyminer
optionalreadonlynumber
readonlysize
readonlytimestamp
optionalreadonlytotalDifficulty
optionalreadonlytransactions
BlockOutput
optionalreadonlybaseFeePerGas
optionalreadonlyblobGasUsed
optionalreadonlydifficulty
optionalreadonlyexcessBlobGas
optionalreadonlyextraData
readonlygasLimit
readonlygasUsed
optionalreadonlyhash
optionalreadonlylogsBloom
optionalreadonlyminer
optionalreadonlymixHash
optionalreadonlynonce
optionalreadonlynumber
optionalreadonlyparentBeaconBlockRoot
optionalreadonlyparentHash
optionalreadonlyreceiptsRoot
readonlysha3Uncles
readonlysize
optionalreadonlystateRoot
readonlytimestamp
optionalreadonlytotalDifficulty
optionalreadonlytransactions
optionalreadonlytransactionsRoot
optionalreadonlyuncles
optionalreadonlywithdrawals
optionalreadonlywithdrawalsRoot
Common
optionalbaseChain
customChain
optionalhardfork
CompileResultAPI
readonlycode
readonlyinfo
Type declaration
readonlyabiDefinition: Record<string, unknown>[]
readonlycompilerVersion: string
readonlydeveloperDoc: { methods: Record<string, unknown> }
readonlymethods: Record<string, unknown>
readonlylanguage: string
readonlylanguageVersion: string
readonlysource: string
readonlyuserDoc: { methods: Record<string, unknown> }
readonlymethods: Record<string, unknown>
ContractInitOptions
optionalreadonlydata
The byte code of the contract. Used when the contract gets deployed
optionalreadonlydataInputFill
optionalreadonlyfrom
The address transactions should be made from
optionalreadonlygas
The maximum gas provided for a transaction (gas limit).
optionalreadonlygasLimit
optionalreadonlygasPrice
The gas price in wei to use for transactions.
optionalreadonlyinput
optionalreadonlyprovider
optionalreadonlysyncWithContext
If true
, the defaults of the contract instance will be updated automatically based on the changes of the context used to instantiate the contract.
CustomChain
chainId
optionalname
networkId
DecodedParams
__length__
EIP1193Provider
Type parameters
- API: Web3APISpec
on
Parameters
event: connect
listener: (info: ProviderInfo) => void
Returns void
removeListener
Parameters
event: connect
listener: (info: ProviderInfo) => void
Returns void
request
Type parameters
- Method: string
- ResponseType = Web3APIReturnType<API, Method>
Parameters
args: Web3APIPayload<API, Method>
Returns Promise<unknown>
Eip712TypeDetails
name
type
Eip712TypedData
readonlydomain
readonlymessage
readonlyprimaryType
readonlytypes
Type declaration
[key string]: Eip712TypeDetails[]
EIP712Domain: Eip712TypeDetails[]
EthSubscription
readonlydata
Type declaration
readonlyresult: unknown
readonlysubscription: string
readonlytype
FeeData
To contain the gas Fee Data to be used with EIP-1559 transactions. EIP-1559 was applied to Ethereum after London hardfork.
Typically you will only need maxFeePerGas
and maxPriorityFeePerGas
for a transaction following EIP-1559.
However, if you want to get informed about the fees of last block, you can use baseFeePerGas
too.
optionalreadonlybaseFeePerGas
The baseFeePerGas returned from the last available block.
If EIP-1559 is not supported, this will be undefined
However, the user will only pay (the future baseFeePerGas + the maxPriorityFeePerGas). And this value is just for getting informed about the fees of last block.
optionalreadonlygasPrice
This filed is used for legacy networks that does not support EIP-1559.
optionalreadonlymaxFeePerGas
The maximum fee that the user would be willing to pay per-gas.
However, the user will only pay (the future baseFeePerGas + the maxPriorityFeePerGas).
And the maxFeePerGas
could be used to prevent paying more than it, if baseFeePerGas
went too high.
If EIP-1559 is not supported, this will be undefined
optionalreadonlymaxPriorityFeePerGas
The validator's tip for including a transaction in a block.
If EIP-1559 is not supported, this will be undefined
FeeHistoryBase
Type parameters
- NumberType
readonlybaseFeePerGas
readonlygasUsedRatio
readonlyoldestBlock
readonlyreward
Filter
optionalreadonlyaddress
optionalreadonlyblockHash
optionalreadonlyfilter
optionalreadonlyfromBlock
optionalreadonlytoBlock
optionalreadonlytopics
JsonRpcError
Type parameters
- T = JsonRpcResult
readonlycode
optionalreadonlydata
readonlymessage
JsonRpcNotification
Type parameters
- T = JsonRpcResult
optionalreadonlydata
optionalreadonlyerror
optionalreadonlyid
readonlyjsonrpc
readonlymethod
readonlyparams
optionalreadonlyresult
JsonRpcOptionalRequest
Type parameters
- ParamType = unknown[]
optionalreadonlyid
optionalreadonlyjsonrpc
readonlymethod
optionalreadonlyparams
JsonRpcRequest
Type parameters
- T = unknown[]
readonlyid
readonlyjsonrpc
readonlymethod
optionalreadonlyparams
JsonRpcResponseWithError
Type parameters
- Error = JsonRpcResult
readonlyerror
readonlyid
readonlyjsonrpc
optionalreadonlyresult
JsonRpcResponseWithResult
Type parameters
- T = JsonRpcResult
optionalreadonlyerror
readonlyid
readonlyjsonrpc
readonlyresult
JsonRpcSubscriptionResult
optionalreadonlydata
readonlyid
readonlyjsonrpc
readonlymethod
readonlyparams
readonlyresult
JsonRpcSubscriptionResultOld
Type parameters
- T = JsonRpcResult
readonlydata
optionalreadonlyerror
optionalreadonlyparams
readonlytype
LegacyRequestProvider
request
Type parameters
- R = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
callback: (err: null | Error, response: JsonRpcResponse<R, JsonRpcResult>) => void
Returns void
LegacySendAsyncProvider
sendAsync
Type parameters
- R = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
Returns Promise<JsonRpcResponse<R, JsonRpcResult>>
LegacySendProvider
send
Type parameters
- R = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
callback: (err: null | Error, response?: JsonRpcResponse<R, JsonRpcResult>) => void
Returns void
Log
optionalreadonlyaddress
optionalreadonlyblockHash
optionalreadonlyblockNumber
optionalreadonlydata
optionalreadonlyid
optionalreadonlylogIndex
optionalreadonlyremoved
optionalreadonlytopics
optionalreadonlytransactionHash
optionalreadonlytransactionIndex
LogBase
Type parameters
- NumberType
- ByteType
optionalreadonlyaddress
optionalreadonlyblockHash
optionalreadonlyblockNumber
optionalreadonlydata
optionalreadonlyid
optionalreadonlylogIndex
optionalreadonlyremoved
optionalreadonlytopics
optionalreadonlytransactionHash
optionalreadonlytransactionIndex
LogsInput
readonlyaddress
optionalreadonlyblockHash
optionalreadonlyblockNumber
readonlydata
optionalreadonlyid
optionalreadonlylogIndex
readonlytopics
optionalreadonlytransactionHash
optionalreadonlytransactionIndex
LogsOutput
readonlyaddress
optionalreadonlyblockHash
optionalreadonlyblockNumber
readonlydata
optionalreadonlyid
optionalreadonlylogIndex
readonlyremoved
readonlytopics
optionalreadonlytransactionHash
optionalreadonlytransactionIndex
MetaMaskProvider
Type parameters
- API: Web3APISpec
isMetaMask
on
Parameters
event: connect
listener: (info: ProviderInfo) => void
Returns void
removeListener
Parameters
event: connect
listener: (info: ProviderInfo) => void
Returns void
request
Type parameters
- Method: string
- ResponseType = Web3APIReturnType<API, Method>
Parameters
args: Web3APIPayload<API, Method>
Returns Promise<unknown>
NonPayableCallOptions
optionaldata
optionalfrom
The address which is the call (the transaction) should be made from. For calls the from
property is optional however it is
highly recommended to explicitly set it or it may default to address(0) depending on your node or provider.
optionalgas
The maximum gas (gas limit) provided for this call (this transaction)
optionalgasPrice
The gas price in wei to use for this call transaction
.
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnonce
optionaltype
PayableCallOptions
optionaldata
optionalfrom
The address which is the call (the transaction) should be made from. For calls the from
property is optional however it is
highly recommended to explicitly set it or it may default to address(0) depending on your node or provider.
optionalgas
The maximum gas (gas limit) provided for this call (this transaction)
optionalgasPrice
The gas price in wei to use for this call transaction
.
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnonce
optionaltype
optionalvalue
PopulatedUnsignedBaseTransaction
chain
chainId
common
optionaldata
from
optionalgas
gasLimit
gasPrice
hardfork
optionalinput
networkId
nonce
optionalto
type
value
PopulatedUnsignedEip1559Transaction
accessList
chain
chainId
common
optionaldata
from
optionalgas
gasLimit
gasPrice
hardfork
optionalinput
maxFeePerGas
maxPriorityFeePerGas
networkId
nonce
optionalto
type
value
PopulatedUnsignedEip2930Transaction
accessList
chain
chainId
common
optionaldata
from
optionalgas
gasLimit
gasPrice
hardfork
optionalinput
networkId
nonce
optionalto
type
value
PostInput
optionalreadonlyexpiry
optionalreadonlypriority
optionalreadonlysent
optionalreadonlytopics
optionalreadonlyttl
optionalreadonlyworkProved
optionalreadonlyworkToProve
PostOutput
optionalreadonlyexpiry
optionalreadonlypriority
optionalreadonlysent
optionalreadonlytopics
optionalreadonlyttl
optionalreadonlyworkProved
optionalreadonlyworkToProve
Proof
readonlyaddress
readonlybalance
readonlynonce
ProviderConnectInfo
readonlychainId
ProviderInfo
chainId
ProviderMessage
readonlydata
readonlytype
ProviderRpcError
code
optionaldata
ReceiptInput
optionalreadonlyblockNumber
optionalreadonlycontractAddress
readonlycumulativeGasUsed
optionalreadonlyeffectiveGasPrice
readonlygasUsed
optionalreadonlylogs
optionalreadonlystatus
optionalreadonlytransactionIndex
ReceiptOutput
optionalreadonlyblockNumber
optionalreadonlycontractAddress
readonlycumulativeGasUsed
optionalreadonlyeffectiveGasPrice
readonlygasUsed
optionalreadonlylogs
readonlystatus
optionalreadonlytransactionIndex
SignedTransactionInfoAPI
raw
tx
SimpleProvider
Type parameters
- API: Web3APISpec
request
Type parameters
- Method: string
- ResponseType = Web3APIReturnType<API, Method>
Parameters
args: Web3APIPayload<API, Method>
Returns Promise<unknown>
SocketRequestItem
Type parameters
- API: Web3APISpec
- Method: Web3APIMethod<API>
- ResponseType
deferredPromise
payload
StorageProof
readonlykey
readonlyproof
readonlyvalue
SubscriptionParams
Type parameters
- T = JsonRpcResult
readonlyresult
readonlysubscription
SyncInput
readonlycurrentBlock
readonlyhighestBlock
optionalreadonlyknownStates
optionalreadonlypulledStates
readonlystartingBlock
SyncOutput
readonlycurrentBlock
readonlyhighestBlock
optionalreadonlyknownStates
optionalreadonlypulledStates
readonlystartingBlock
Transaction
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
optionalfrom
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
optionalto
optionaltype
optionalv
optionalvalue
optionalyParity
Transaction1559SignedAPI
readonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
readonlymaxFeePerGas
readonlymaxPriorityFeePerGas
readonlynonce
readonlyr
readonlys
optionalreadonlyto
readonlytype
optionalreadonlyv
readonlyvalue
readonlyyParity
Transaction1559UnsignedAPI
readonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
readonlymaxFeePerGas
readonlymaxPriorityFeePerGas
readonlynonce
optionalreadonlyto
readonlytype
readonlyvalue
Transaction2930SignedAPI
readonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlynonce
readonlyr
readonlys
optionalreadonlyto
readonlytype
optionalreadonlyv
readonlyvalue
readonlyyParity
Transaction2930UnsignedAPI
readonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlynonce
optionalreadonlyto
readonlytype
readonlyvalue
TransactionCall
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
optionalfrom
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
to
optionaltype
optionalv
optionalvalue
optionalyParity
TransactionCallAPI
optionalreadonlyaccessList
optionalreadonlydata
optionalreadonlyfrom
optionalreadonlygas
optionalreadonlygasPrice
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlyto
optionalreadonlytype
optionalreadonlyvalue
TransactionForAccessList
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
from
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
optionalto
optionaltype
optionalv
optionalvalue
optionalyParity
TransactionInfo
optionalaccessList
optionalreadonlyblockHash
optionalreadonlyblockNumber
optionalchain
optionalchainId
optionalcommon
optionaldata
readonlyfrom
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
readonlyhash
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
optionalto
optionalreadonlytransactionIndex
optionaltype
optionalv
optionalvalue
optionalyParity
TransactionInput
optionalreadonlyblockNumber
optionalreadonlychainId
optionalreadonlydata
optionalreadonlyfrom
readonlygas
optionalreadonlygasLimit
optionalreadonlygasPrice
optionalreadonlyinput
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlynonce
optionalreadonlyto
optionalreadonlytransactionIndex
optionalreadonlytype
readonlyvalue
TransactionLegacySignedAPI
optionalreadonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlynonce
readonlyr
readonlys
optionalreadonlyto
readonlytype
readonlyv
readonlyvalue
TransactionLegacyUnsignedAPI
optionalreadonlyaccessList
optionalreadonlychainId
optionalreadonlydata
readonlygas
readonlygasPrice
optionalreadonlyhash
readonlyinput
optionalreadonlymaxFeePerGas
optionalreadonlymaxPriorityFeePerGas
readonlynonce
optionalreadonlyto
readonlytype
readonlyvalue
TransactionReceiptBase
Type parameters
- numberType
- hashByteType
- logsBloomByteType
- logsType
readonlyblockHash
readonlyblockNumber
optionalreadonlycontractAddress
readonlycumulativeGasUsed
optionalreadonlyeffectiveGasPrice
optionalevents
Type declaration
[key string]: EventLog
readonlyfrom
readonlygasUsed
readonlylogs
readonlylogsBloom
readonlyroot
readonlystatus
readonlyto
readonlytransactionHash
readonlytransactionIndex
optionalreadonlytype
TransactionWithFromAndToLocalWalletIndex
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
from
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
to
optionaltype
optionalv
optionalvalue
optionalyParity
TransactionWithFromLocalWalletIndex
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
from
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
optionalto
optionaltype
optionalv
optionalvalue
optionalyParity
TransactionWithToLocalWalletIndex
optionalaccessList
optionalchain
optionalchainId
optionalcommon
optionaldata
optionalfrom
optionalgas
optionalgasLimit
optionalgasPrice
optionalhardfork
optionalinput
optionalmaxFeePerGas
optionalmaxPriorityFeePerGas
optionalnetworkId
optionalnonce
optionalr
optionals
to
optionaltype
optionalv
optionalvalue
optionalyParity
Web3APIPayload
Type parameters
- API: Web3APISpec
- Method: Web3APIMethod<API>
optionalreadonlyid
optionalreadonlyjsonrpc
method
optionalparams
optionalreadonlyrequestOptions
Web3APIRequest
Type parameters
- API: Web3APISpec
- Method: Web3APIMethod<API>
method
optionalparams
Web3AccountProvider
Type parameters
- T
create
Type declaration
Returns T
decrypt
Type declaration
Parameters
keystore: string | KeyStore
password: string
optionaloptions: Record<string, unknown>
Returns Promise<T>
privateKeyToAccount
Type declaration
Parameters
privateKey: string
Returns T
Web3BaseWalletAccount
readonlyaddress
readonlyencrypt
Type declaration
Parameters
password: string
optionaloptions: Record<string, unknown>
Returns Promise<KeyStore>
readonlyprivateKey
readonlysign
Type declaration
Parameters
data: string | Record<string, unknown>
Returns SignResult
readonlysignTransaction
Type declaration
Parameters
tx: Transaction
Returns Promise<SignTransactionResult>
Web3DeferredPromiseInterface
Type parameters
- T
state
reject
Parameters
optionalreason: unknown
Returns void
resolve
Parameters
value: T | PromiseLike<T>
Returns void
startTimer
Returns void
Web3Error
readonlycode
readonlyname
optionalreadonlystack
Withdrawals
readonlyaddress
readonlyamount
readonlyindex
readonlyvalidatorIndex
Type Aliases
AbiBaseFragment
Type declaration
readonlytype: string | FragmentTypes
AbiConstructorFragment
AbiErrorFragment
AbiEventFragment
AbiFallbackFragment
AbiFragment
AbiFunctionFragment
AbiInput
AbiItem
AbiParameter
Type declaration
optionalreadonlyarrayChildren?: ReadonlyArray<AbiParameter>
optionalreadonlyarrayLength?: number
optionalreadonlybaseType?: string
optionalreadonlycomponents?: ReadonlyArray<AbiParameter>
optionalreadonlyindexed?: boolean
optionalreadonlyinternalType?: string
readonlyname: string
readonlytype: string
AccessList
AccessListResult
Type declaration
optionalreadonlyaccessList?: AccessList
optionalreadonlygasUsed?: Numbers
Address
ArrayToIndexObject
Type parameters
- T: ReadonlyArray<unknown>
Block
BlockAPI
BlockNumberOrTag
BlockTag
ByteTypes
Type declaration
BYTES_HEX: HexString
BYTES_UINT8ARRAY: Uint8Array
Bytes
Cipher
CipherOptions
Type declaration
optionalc?: number
optionaldklen?: number
optionaliv?: Uint8Array | string
optionalkdf?: scrypt | pbkdf2
optionaln?: number
optionalp?: number
optionalr?: number
optionalsalt?: Uint8Array | string
Components
Type declaration
optionalcomponents?: Components[]
optionalindexed?: boolean
name: string
type: string
ConnectionEvent
Type declaration
code: number
reason: string
optionalwasClean?: boolean
ContractAbi
ContractConstructor
Type parameters
- Abis: ContractAbi
ContractConstructorArgs
Type parameters
- Abis: ContractAbi
ContractEvent
Type parameters
- Abi: AbiEventFragment
Type declaration
readonlyAbi: Abi
readonlyInputs: ContractMethodInputParameters<Abi[inputs]>
ContractEvents
Type parameters
- Abis: ContractAbi
ContractMethod
Type parameters
- Abi: AbiFunctionFragment
Type declaration
readonlyAbi: Abi
readonlyInputs: ContractMethodInputParameters<Abi[inputs]>
readonlyOutputs: ContractMethodOutputParameters<Abi[outputs]>
ContractMethodInputParameters
Type parameters
- Params: ReadonlyArray<unknown> | undefined
ContractMethodOutputParameters
Type parameters
- Params: ReadonlyArray<unknown> | undefined
ContractMethods
Type parameters
- Abis: ContractAbi
ConvertToNumber
Type parameters
- T: string
- Range: number = _SolidityIndexRange
DataFormat
Used to specify how data should be formatted. Bytes can be formatted as hexadecimal strings or Uint8Arrays. Numbers can be formatted as BigInts, hexadecimal strings, primitive numbers, or strings.
Type declaration
readonlybytes: FMT_BYTES
readonlynumber: FMT_NUMBER
Eip1193Compatible
Type parameters
- API: Web3APISpec = EthExecutionAPI
Eip1193EventName
EncodingTypes
EthExecutionAPI
Type declaration
eth_accounts: () => Address[]
Returns Address[]
eth_blockNumber: () => Uint
Returns Uint
eth_call: (transaction: TransactionCallAPI, blockNumber: BlockNumberOrTag) => HexStringBytes
Parameters
transaction: TransactionCallAPI
blockNumber: BlockNumberOrTag
Returns HexStringBytes
eth_clearSubscriptions: (keepSyncing?: boolean) => void
Parameters
optionalkeepSyncing: boolean
Returns void
eth_coinbase: () => Address
Returns Address
eth_compileLLL: (code: string) => HexStringBytes
Parameters
code: string
Returns HexStringBytes
eth_compileSerpent: (code: string) => HexStringBytes
Parameters
code: string
Returns HexStringBytes
eth_compileSolidity: (code: string) => CompileResultAPI
Parameters
code: string
Returns CompileResultAPI
eth_estimateGas: (transaction: Partial<TransactionWithSenderAPI>, blockNumber: BlockNumberOrTag) => Uint
Parameters
transaction: Partial<TransactionWithSenderAPI>
blockNumber: BlockNumberOrTag
Returns Uint
eth_feeHistory: (blockCount: Uint, newestBlock: BlockNumberOrTag, rewardPercentiles: number[]) => FeeHistoryResultAPI
Parameters
blockCount: Uint
newestBlock: BlockNumberOrTag
rewardPercentiles: number[]
Returns FeeHistoryResultAPI
eth_gasPrice: () => Uint
Returns Uint
eth_getBalance: (address: Address, blockNumber: BlockNumberOrTag) => Uint
Parameters
address: Address
blockNumber: BlockNumberOrTag
Returns Uint
eth_getBlockByHash: (blockHash: HexString32Bytes, hydrated: boolean) => BlockAPI
Parameters
blockHash: HexString32Bytes
hydrated: boolean
Returns BlockAPI
eth_getBlockByNumber: (blockNumber: BlockNumberOrTag, hydrated: boolean) => BlockAPI
Parameters
blockNumber: BlockNumberOrTag
hydrated: boolean
Returns BlockAPI
eth_getBlockTransactionCountByHash: (blockHash: HexString32Bytes) => Uint
Parameters
blockHash: HexString32Bytes
Returns Uint
eth_getBlockTransactionCountByNumber: (blockNumber: BlockNumberOrTag) => Uint
Parameters
blockNumber: BlockNumberOrTag
Returns Uint
eth_getCode: (address: Address, blockNumber: BlockNumberOrTag) => HexStringBytes
Parameters
address: Address
blockNumber: BlockNumberOrTag
Returns HexStringBytes
eth_getCompilers: () => string[]
Returns string[]
eth_getFilterChanges: (filterIdentifier: Uint) => FilterResultsAPI
Parameters
filterIdentifier: Uint
Returns FilterResultsAPI
eth_getFilterLogs: (filterIdentifier: Uint) => FilterResultsAPI
Parameters
filterIdentifier: Uint
Returns FilterResultsAPI
eth_getLogs: (filter: Filter) => FilterResultsAPI
Parameters
filter: Filter
Returns FilterResultsAPI
eth_getStorageAt: (address: Address, storageSlot: Uint256, blockNumber: BlockNumberOrTag) => HexStringBytes
Parameters
address: Address
storageSlot: Uint256
blockNumber: BlockNumberOrTag
Returns HexStringBytes
eth_getTransactionByBlockHashAndIndex: (blockHash: HexString32Bytes, transactionIndex: Uint) => TransactionInfoAPI | undefined
Parameters
blockHash: HexString32Bytes
transactionIndex: Uint
Returns TransactionInfoAPI | undefined
eth_getTransactionByBlockNumberAndIndex: (blockNumber: BlockNumberOrTag, transactionIndex: Uint) => TransactionInfoAPI | undefined
Parameters
blockNumber: BlockNumberOrTag
transactionIndex: Uint
Returns TransactionInfoAPI | undefined
eth_getTransactionByHash: (transactionHash: HexString32Bytes) => TransactionInfoAPI | undefined
Parameters
transactionHash: HexString32Bytes
Returns TransactionInfoAPI | undefined
eth_getTransactionCount: (address: Address, blockNumber: BlockNumberOrTag) => Uint
Parameters
address: Address
blockNumber: BlockNumberOrTag
Returns Uint
eth_getTransactionReceipt: (transactionHash: HexString32Bytes) => TransactionReceiptAPI | undefined
Parameters
transactionHash: HexString32Bytes
Returns TransactionReceiptAPI | undefined
eth_getUncleByBlockHashAndIndex: (blockHash: HexString32Bytes, uncleIndex: Uint) => BlockAPI
Parameters
blockHash: HexString32Bytes
uncleIndex: Uint
Returns BlockAPI
eth_getUncleByBlockNumberAndIndex: (blockNumber: BlockNumberOrTag, uncleIndex: Uint) => BlockAPI
Parameters
blockNumber: BlockNumberOrTag
uncleIndex: Uint
Returns BlockAPI
eth_getUncleCountByBlockHash: (blockHash: HexString32Bytes) => Uint
Parameters
blockHash: HexString32Bytes
Returns Uint
eth_getUncleCountByBlockNumber: (blockNumber: BlockNumberOrTag) => Uint
Parameters
blockNumber: BlockNumberOrTag
Returns Uint
eth_getWork: () => [HexString32Bytes, HexString32Bytes, HexString32Bytes]
Returns [HexString32Bytes, HexString32Bytes, HexString32Bytes]
eth_hashrate: () => Uint
Returns Uint
eth_maxPriorityFeePerGas: () => Uint
Returns Uint
eth_mining: () => boolean
Returns boolean
eth_newBlockFilter: () => Uint
Returns Uint
eth_newFilter: (filter: Filter) => Uint
eth_newPendingTransactionFilter: () => Uint
Returns Uint
eth_protocolVersion: () => string
Returns string
eth_sendRawTransaction: (transaction: HexStringBytes) => HexString32Bytes
Parameters
transaction: HexStringBytes
Returns HexString32Bytes
eth_sendTransaction: (transaction: TransactionWithSenderAPI | Partial<TransactionWithSenderAPI>) => HexString32Bytes
Parameters
transaction: TransactionWithSenderAPI | Partial<TransactionWithSenderAPI>
Returns HexString32Bytes
eth_sign: (address: Address, message: HexStringBytes) => HexString256Bytes
Parameters
address: Address
message: HexStringBytes
Returns HexString256Bytes
eth_signTransaction: (transaction: TransactionWithSenderAPI | Partial<TransactionWithSenderAPI>) => HexStringBytes | SignedTransactionInfoAPI
Parameters
transaction: TransactionWithSenderAPI | Partial<TransactionWithSenderAPI>
Returns HexStringBytes | SignedTransactionInfoAPI
eth_submitHashrate: (hashRate: HexString32Bytes, id: HexString32Bytes) => boolean
Parameters
hashRate: HexString32Bytes
id: HexString32Bytes
Returns boolean
eth_submitWork: (nonce: HexString8Bytes, hash: HexString32Bytes, digest: HexString32Bytes) => boolean
Parameters
nonce: HexString8Bytes
hash: HexString32Bytes
digest: HexString32Bytes
Returns boolean
eth_subscribe: (...params: [newHeads] | [newPendingTransactions] | [syncing] | [logs, { address?: HexString; topics?: HexString[] }]) => HexString
eth_syncing: () => SyncingStatusAPI
Returns SyncingStatusAPI
eth_uninstallFilter: (filterIdentifier: Uint) => boolean
Parameters
filterIdentifier: Uint
Returns boolean
eth_unsubscribe: (subscriptionId: HexString) => HexString
EthPersonalAPI
Type declaration
personal_ecRecover: (signedData: HexString, signature: HexString) => Address
personal_importRawKey: (keyData: HexString, passphrase: string) => HexString
personal_listAccounts: () => Address[]
Returns Address[]
personal_lockAccount: (address: Address) => boolean
Parameters
address: Address
Returns boolean
personal_newAccount: (password: string) => Address
Parameters
password: string
Returns Address
personal_sendTransaction: (tx: Transaction, passphrase: string) => HexString
Parameters
tx: Transaction
passphrase: string
Returns HexString
personal_sign: (data: HexString, address: Address, passphrase: string) => HexString
personal_signTransaction: (tx: Transaction, passphrase: string) => HexString
Parameters
tx: Transaction
passphrase: string
Returns HexString
personal_unlockAccount: (address: Address, password: string, unlockDuration: number) => boolean
Parameters
address: Address
password: string
unlockDuration: number
Returns boolean
FeeHistory
FeeHistoryResultAPI
FilterAbis
Type parameters
- Abis: ContractAbi
- Filter
- Abi = Abis[number]
FilterParams
FilterResultsAPI
FixedSizeArray
Type parameters
- T
- N: number
FormatType
Type parameters
- T
- F: DataFormat
GrowToSize
Type parameters
- T
- A: T[]
- N: number
Hardfork
HexString
HexString16Bytes
HexString256Bytes
HexString32Bytes
HexString8Bytes
HexStringBytes
HexStringSingleByte
IndexKeysForArray
Type parameters
- A: readonly unknown[]
JsonEventInterface
Type declaration
anonymous: boolean
indexed: boolean
inputs: Components[]
name: string
type: event
JsonFunctionInterface
Type declaration
inputs: Components[]
name: string
optionaloutputs?: AbiInput[]
optionalstateMutability?: string
type: function
JsonRpcBatchRequest
JsonRpcBatchResponse
Type parameters
- Result = JsonRpcResult
- Error = JsonRpcResult
JsonRpcId
JsonRpcIdentifier
JsonRpcPayload
Type parameters
- Param = unknown[]
JsonRpcResponse
Type parameters
- Result = JsonRpcResult
- Error = JsonRpcResult
JsonRpcResult
KeyStore
Type declaration
address: string
crypto: { cipher: Cipher; cipherparams: { iv: string }; ciphertext: string; kdf: pbkdf2 | scrypt; kdfparams: ScryptParams | PBKDF2SHA256Params; mac: HexString }
cipher: Cipher
cipherparams: { iv: string }
iv: string
ciphertext: string
kdf: pbkdf2 | scrypt
kdfparams: ScryptParams | PBKDF2SHA256Params
mac: HexString
id: string
version: 3
LogAPI
MatchPrimitiveType
Type parameters
- Type: string
- TypeComponents: ReadonlyArray<AbiParameter> | undefined | unknown
Mutable
Type parameters
- T
NumberTypes
Type declaration
NUMBER_BIGINT: bigint
NUMBER_HEX: HexString
NUMBER_NUMBER: number
NUMBER_STR: string
Numbers
Optional
Type parameters
- T
- K: keyof T
PBKDF2SHA256Params
Type declaration
c: number
dklen: number
prf: hmac-sha256
salt: Uint8Array | string
PopulatedUnsignedTransaction
PrimitiveAddressType
Type parameters
- Type: string
PrimitiveBooleanType
Type parameters
- Type: string
PrimitiveBytesType
Type parameters
- Type: string
PrimitiveIntegerType
Type parameters
- Type: string
PrimitiveStringType
Type parameters
- Type: string
PrimitiveTupleType
Type parameters
- Type: string
- TypeComponents: ReadonlyArray<AbiParameter> | undefined | unknown = []
ProviderAccounts
ProviderChainId
Receipt
ScryptParams
Type declaration
dklen: number
n: number
p: number
r: number
salt: Uint8Array | string
Sha3Input
SupportedProviders
Type parameters
- API: Web3APISpec = Web3EthExecutionAPI
SyncingStatusAPI
Topic
TransactionHash
TransactionInfoAPI
TransactionOutput
TransactionReceipt
TransactionReceiptAPI
TransactionSignedAPI
TransactionUnsignedAPI
TransactionWithSenderAPI
TypedObject
Type declaration
type: string
value: EncodingTypes
TypedObjectAbbreviated
Type declaration
t: string
v: EncodingTypes
Uint
Uint256
Uncles
ValidChains
ValueTypes
Web3APIMethod
Type parameters
- T: Web3APISpec
Web3APIParams
Type parameters
- API: Web3APISpec
- Method: Web3APIMethod<API>
Web3APIReturnType
Type parameters
- API: Web3APISpec
- Method: Web3APIMethod<API>
Web3APISpec
Web3BaseProviderConstructor
Type declaration
Type parameters
- API: Web3APISpec
Parameters
url: string
optionalnet: Socket
Returns Web3BaseProvider<API>
Web3Eip1193ProviderEventCallback
Type parameters
- T
Type declaration
Parameters
data: T
Returns void
Web3EthExecutionAPI
Web3NetAPI
Web3ProviderEventCallback
Type parameters
- T = JsonRpcResult
Type declaration
Parameters
error: Error | ProviderRpcError | undefined
optionalresult: JsonRpcSubscriptionResult | JsonRpcNotification<T>
Returns void
Web3ProviderMessageEventCallback
Type parameters
- T = JsonRpcResult
Type declaration
Parameters
optionalresult: JsonRpcSubscriptionResult | JsonRpcNotification<T>
Returns void
Web3ProviderRequestCallback
Type parameters
- ResultType = unknown
Type declaration
Parameters
optionalerr: Error | Web3Error | null | JsonRpcResponseWithError<Error>
optionalresponse: JsonRpcResponseWithResult<ResultType>
Returns void
Web3ProviderStatus
Web3ValidationErrorObject
Type parameters
- K: string = string
- P = Record<string, any>
- S = unknown
Type declaration
optionaldata?: unknown
instancePath: string
keyword: K
optionalmessage?: string
params: P
optionalpropertyName?: string
optionalschema?: S
schemaPath: string
Variables
constDEFAULT_RETURN_FORMAT
Type declaration
readonlybytes: FMT_BYTES.HEX
readonlynumber: FMT_NUMBER.BIGINT
constETH_DATA_FORMAT
Type declaration
readonlybytes: FMT_BYTES.HEX
readonlynumber: FMT_NUMBER.HEX
Modify the return type of the request method to be fully compatible with EIP-1193
[deprecated] In the future major releases (>= v5) all providers are supposed to be fully compatible with EIP-1193. So this method will not be needed and would not be available in the future.