Skip to main content

web3-types

Index

Classes

Enumerations

Interfaces

Type Aliases

Variables

Type Aliases

AbiBaseFragment

AbiBaseFragment: { type: string | FragmentTypes }

Type declaration

  • readonlytype: string | FragmentTypes

AbiConstructorFragment

AbiConstructorFragment: AbiBaseFragment & { inputs?: ReadonlyArray<AbiParameter>; stateMutability: string | nonpayable | payable; type: string | constructor }

AbiErrorFragment

AbiErrorFragment: AbiBaseFragment & { inputs?: ReadonlyArray<AbiParameter>; name: string; type: string | error }

AbiEventFragment

AbiEventFragment: AbiBaseFragment & { anonymous?: boolean; inputs?: ReadonlyArray<AbiParameter>; name: string; type: string | event }

AbiFallbackFragment

AbiFallbackFragment: AbiBaseFragment & { constant?: boolean; inputs: never; name: never; outputs: never; payable?: boolean; stateMutability: string | nonpayable | payable | pure | view; type: string | fallback }

AbiFragment

AbiFunctionFragment

AbiFunctionFragment: AbiBaseFragment & { constant?: boolean; inputs?: ReadonlyArray<AbiParameter>; name: string; outputs?: ReadonlyArray<AbiParameter>; payable?: boolean; stateMutability?: string | nonpayable | payable | pure | view; type: string | function }

AbiInput

AbiInput: string | AbiParameter | { components?: Components; index?: boolean; internalType?: string; name: string; type: string } | {}

AbiParameter

AbiParameter: { arrayChildren?: ReadonlyArray<AbiParameter>; arrayLength?: number; baseType?: string; components?: ReadonlyArray<AbiParameter>; indexed?: boolean; name: string; type: string }

Type declaration

  • optionalreadonlyarrayChildren?: ReadonlyArray<AbiParameter>
  • optionalreadonlyarrayLength?: number
  • optionalreadonlybaseType?: string
  • optionalreadonlycomponents?: ReadonlyArray<AbiParameter>
  • optionalreadonlyindexed?: boolean
  • readonlyname: string
  • readonlytype: string

AccessList

AccessList: AccessListEntry[]

AccessListResult

AccessListResult: { accessList?: AccessList; gasUsed?: Numbers }

Type declaration

Address

Address: HexString

ArrayToIndexObject

ArrayToIndexObject<T>: { [ K in IndexKeysForArray<T> ]: T[K] }

Type parameters

  • T: ReadonlyArray<unknown>

Block

BlockAPI

BlockNumberOrTag

BlockNumberOrTag: Numbers | BlockTag

BlockTag

BlockTag: `${BlockTags}`

ByteTypes

ByteTypes: { BYTES_BUFFER: Buffer; BYTES_HEX: HexString; BYTES_UINT8ARRAY: Uint8Array }

Type declaration

  • BYTES_BUFFER: Buffer
  • BYTES_HEX: HexString
  • BYTES_UINT8ARRAY: Uint8Array

Bytes

Bytes: Buffer | Uint8Array | ArrayBuffer | HexString

Cipher

Cipher: aes-128-ctr | aes-128-cbc | aes-256-cbc

CipherOptions

CipherOptions: { c?: number; dklen?: number; iv?: Buffer | string; kdf?: scrypt | pbkdf2; n?: number; p?: number; r?: number; salt?: Buffer | string }

Type declaration

  • optionalc?: number
  • optionaldklen?: number
  • optionaliv?: Buffer | string
  • optionalkdf?: scrypt | pbkdf2
  • optionaln?: number
  • optionalp?: number
  • optionalr?: number
  • optionalsalt?: Buffer | string

Components

Components: { components?: Components[]; indexed?: boolean; name: string; type: string }

Type declaration

  • optionalcomponents?: Components[]
  • optionalindexed?: boolean
  • name: string
  • type: string

ConnectionEvent

ConnectionEvent: { code: number; reason: string; wasClean?: boolean }

Type declaration

  • code: number
  • reason: string
  • optionalwasClean?: boolean

ContractAbi

ContractAbi: ReadonlyArray<AbiFragment>

ContractConstructor

ContractConstructor<Abis>: { [ Abi in FilterAbis<Abis, AbiConstructorFragment & { type: constructor }> as constructor ]: { Abi: Abi; Inputs: ContractMethodInputParameters<Abi[inputs]> } }[constructor]

Type parameters

ContractConstructorArgs

ContractConstructorArgs<Abis>: { [ Abi in FilterAbis<Abis, AbiConstructorFragment & { type: constructor }> as constructor ]: ContractMethodInputParameters<Abi[inputs]> }[constructor]

Type parameters

ContractEvent

ContractEvent<Abi>: { Abi: Abi; Inputs: ContractMethodInputParameters<Abi[inputs]> }

Type parameters

Type declaration

ContractEvents

ContractEvents<Abis>: { [ Abi in FilterAbis<Abis, AbiEventFragment & { type: event }> as Abi[name] ]: ContractEvent<Abi> }

Type parameters

ContractMethod

ContractMethod<Abi>: { Abi: Abi; Inputs: ContractMethodInputParameters<Abi[inputs]>; Outputs: ContractMethodOutputParameters<Abi[outputs]> }

Type parameters

Type declaration

ContractMethodInputParameters

ContractMethodInputParameters<Params>: Params extends readonly [] ? [] : Params extends readonly [infer H, ...infer R] ? H extends AbiParameter ? [MatchPrimitiveType<H[type], H[components]>, ...ContractMethodInputParameters<R>] : ContractMethodInputParameters<R> : Params extends undefined | unknown ? [] : Params

Type parameters

  • Params: ReadonlyArray<unknown> | undefined

ContractMethodOutputParameters

ContractMethodOutputParameters<Params>: Params extends readonly [] ? void : Params extends readonly [infer H, ...infer R] ? R extends readonly [] ? H extends AbiParameter ? MatchPrimitiveType<H[type], H[components]> : [] : ArrToObjectWithFunctions<[...ContractMethodOutputParametersRecursiveArray<Params>]> & ContractMethodOutputParametersRecursiveRecord<Params> : []

Type parameters

  • Params: ReadonlyArray<unknown> | undefined

ContractMethods

ContractMethods<Abis>: { [ Abi in FilterAbis<Abis, AbiFunctionFragment & { type: function }> as Abi[name] ]: ContractMethod<Abi> }

Type parameters

ConvertToNumber

ConvertToNumber<T, Range>: Range extends unknown ? `${Range}` extends T ? Range : never : never

Type parameters

  • T: string
  • Range: number = _SolidityIndexRange

DataFormat

DataFormat: { bytes: FMT_BYTES; number: FMT_NUMBER }

Type declaration

EncodingTypes

EncodingTypes: Numbers | boolean | Numbers[] | boolean[]

EthExecutionAPI

EthExecutionAPI: { eth_accounts: any; eth_blockNumber: any; eth_call: any; eth_clearSubscriptions: any; eth_coinbase: any; eth_compileLLL: any; eth_compileSerpent: any; eth_compileSolidity: any; eth_estimateGas: any; eth_feeHistory: any; eth_gasPrice: any; eth_getBalance: any; eth_getBlockByHash: any; eth_getBlockByNumber: any; eth_getBlockTransactionCountByHash: any; eth_getBlockTransactionCountByNumber: any; eth_getCode: any; eth_getCompilers: any; eth_getFilterChanges: any; eth_getFilterLogs: any; eth_getLogs: any; eth_getStorageAt: any; eth_getTransactionByBlockHashAndIndex: any; eth_getTransactionByBlockNumberAndIndex: any; eth_getTransactionByHash: any; eth_getTransactionCount: any; eth_getTransactionReceipt: any; eth_getUncleByBlockHashAndIndex: any; eth_getUncleByBlockNumberAndIndex: any; eth_getUncleCountByBlockHash: any; eth_getUncleCountByBlockNumber: any; eth_getWork: any; eth_hashrate: any; eth_mining: any; eth_newBlockFilter: any; eth_newFilter: any; eth_newPendingTransactionFilter: any; eth_protocolVersion: any; eth_sendRawTransaction: any; eth_sendTransaction: any; eth_sign: any; eth_signTransaction: any; eth_submitHashrate: any; eth_submitWork: any; eth_subscribe: any; eth_syncing: any; eth_uninstallFilter: any; eth_unsubscribe: any }

Type declaration

  • eth_accounts: function
    • eth_accounts(): string[]

    • Returns string[]

  • eth_blockNumber: function
    • eth_blockNumber(): string

    • Returns string

  • eth_call: function

  • eth_clearSubscriptions: function
    • eth_clearSubscriptions(keepSyncing?: boolean): void

    • Parameters

      • optionalkeepSyncing: boolean

      Returns void

  • eth_coinbase: function
    • eth_coinbase(): string

    • Returns string

  • eth_compileLLL: function
    • eth_compileLLL(code: string): string

    • Parameters

      • code: string

      Returns string

  • eth_compileSerpent: function
    • eth_compileSerpent(code: string): string

    • Parameters

      • code: string

      Returns string

  • eth_compileSolidity: function

  • eth_estimateGas: function

  • eth_feeHistory: function

  • eth_gasPrice: function
    • eth_gasPrice(): string

    • Returns string

  • eth_getBalance: function

  • eth_getBlockByHash: function
    • eth_getBlockByHash(blockHash: string, hydrated: boolean): BlockAPI

    • Parameters

      • blockHash: string
      • hydrated: boolean

      Returns BlockAPI

  • eth_getBlockByNumber: function

  • eth_getBlockTransactionCountByHash: function
    • eth_getBlockTransactionCountByHash(blockHash: string): string

    • Parameters

      • blockHash: string

      Returns string

  • eth_getBlockTransactionCountByNumber: function

  • eth_getCode: function

  • eth_getCompilers: function
    • eth_getCompilers(): string[]

    • Returns string[]

  • eth_getFilterChanges: function

  • eth_getFilterLogs: function

  • eth_getLogs: function

  • eth_getStorageAt: function
    • eth_getStorageAt(address: string, storageSlot: string, blockNumber: BlockNumberOrTag): string

    • Parameters

      Returns string

  • eth_getTransactionByBlockHashAndIndex: function
    • eth_getTransactionByBlockHashAndIndex(blockHash: string, transactionIndex: string): undefined | TransactionInfoAPI

  • eth_getTransactionByBlockNumberAndIndex: function

  • eth_getTransactionByHash: function

  • eth_getTransactionCount: function

  • eth_getTransactionReceipt: function

  • eth_getUncleByBlockHashAndIndex: function
    • eth_getUncleByBlockHashAndIndex(blockHash: string, uncleIndex: string): BlockAPI

    • Parameters

      • blockHash: string
      • uncleIndex: string

      Returns BlockAPI

  • eth_getUncleByBlockNumberAndIndex: function

  • eth_getUncleCountByBlockHash: function
    • eth_getUncleCountByBlockHash(blockHash: string): string

    • Parameters

      • blockHash: string

      Returns string

  • eth_getUncleCountByBlockNumber: function

  • eth_getWork: function
    • eth_getWork(): [string, string, string]

    • Returns [string, string, string]

  • eth_hashrate: function
    • eth_hashrate(): string

    • Returns string

  • eth_mining: function
    • eth_mining(): boolean

    • Returns boolean

  • eth_newBlockFilter: function
    • eth_newBlockFilter(): string

    • Returns string

  • eth_newFilter: function
    • eth_newFilter(filter: Filter): string

    • Parameters

      Returns string

  • eth_newPendingTransactionFilter: function
    • eth_newPendingTransactionFilter(): string

    • Returns string

  • eth_protocolVersion: function
    • eth_protocolVersion(): string

    • Returns string

  • eth_sendRawTransaction: function
    • eth_sendRawTransaction(transaction: string): string

    • Parameters

      • transaction: string

      Returns string

  • eth_sendTransaction: function

  • eth_sign: function
    • eth_sign(address: string, message: string): string

    • Parameters

      • address: string
      • message: string

      Returns string

  • eth_signTransaction: function

  • eth_submitHashrate: function
    • eth_submitHashrate(hashRate: string, id: string): boolean

    • Parameters

      • hashRate: string
      • id: string

      Returns boolean

  • eth_submitWork: function
    • eth_submitWork(nonce: string, hash: string, digest: string): boolean

    • Parameters

      • nonce: string
      • hash: string
      • digest: string

      Returns boolean

  • eth_subscribe: function
    • eth_subscribe(...params: [newPendingTransactions] | [newHeads] | [syncing] | [logs, { address?: HexString; topics?: HexString[] }]): string

    • Parameters

      • rest...params: [newPendingTransactions] | [newHeads] | [syncing] | [logs, { address?: HexString; topics?: HexString[] }]

      Returns string

  • eth_syncing: function

  • eth_uninstallFilter: function
    • eth_uninstallFilter(filterIdentifier: string): boolean

    • Parameters

      • filterIdentifier: string

      Returns boolean

  • eth_unsubscribe: function
    • eth_unsubscribe(subscriptionId: string): string

    • Parameters

      • subscriptionId: string

      Returns string

EthPersonalAPI

EthPersonalAPI: { personal_ecRecover: any; personal_importRawKey: any; personal_listAccounts: any; personal_lockAccount: any; personal_newAccount: any; personal_sendTransaction: any; personal_sign: any; personal_signTransaction: any; personal_unlockAccount: any }

Type declaration

  • personal_ecRecover: function
    • personal_ecRecover(signedData: string, signature: string): string

    • Parameters

      • signedData: string
      • signature: string

      Returns string

  • personal_importRawKey: function
    • personal_importRawKey(keyData: string, passphrase: string): string

    • Parameters

      • keyData: string
      • passphrase: string

      Returns string

  • personal_listAccounts: function
    • personal_listAccounts(): string[]

    • Returns string[]

  • personal_lockAccount: function
    • personal_lockAccount(address: string): boolean

    • Parameters

      • address: string

      Returns boolean

  • personal_newAccount: function
    • personal_newAccount(password: string): string

    • Parameters

      • password: string

      Returns string

  • personal_sendTransaction: function
    • personal_sendTransaction(tx: Transaction, passphrase: string): string

    • Parameters

      Returns string

  • personal_sign: function
    • personal_sign(data: string, address: string, passphrase: string): string

    • Parameters

      • data: string
      • address: string
      • passphrase: string

      Returns string

  • personal_signTransaction: function
    • personal_signTransaction(tx: Transaction, passphrase: string): string

    • Parameters

      Returns string

  • personal_unlockAccount: function
    • personal_unlockAccount(address: string, password: string, unlockDuration: number): boolean

    • Parameters

      • address: string
      • password: string
      • unlockDuration: number

      Returns boolean

FeeHistory

FeeHistory: FeeHistoryBase<Numbers>

FeeHistoryResultAPI

FeeHistoryResultAPI: FeeHistoryBase<Uint>

FilterAbis

FilterAbis<Abis, Filter, Abi>: Abi extends Filter ? Abi : never

Type parameters

FilterResultsAPI

FilterResultsAPI: HexString32Bytes[] | LogAPI[]

FixedSizeArray

FixedSizeArray<T, N>: GrowToSize<T, [], N>

Type parameters

  • T
  • N: number

FormatType

FormatType<T, F>: number extends Extract<T, Numbers> ? NumberTypes[F[number]] | Exclude<T, Numbers> : Buffer extends Extract<T, Bytes> ? ByteTypes[F[bytes]] | Exclude<T, Bytes> : T extends object | undefined ? { [ P in keyof T ]: FormatType<T[P], F> } : T

Type parameters

GrowToSize

GrowToSize<T, A, N>: { 0: A; 1: GrowToSize<T, _Grow<T, A>, N> }[A[length] extends N ? 0 : 1]

Type parameters

  • T
  • A: T[]
  • N: number

Hardfork

Hardfork: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle

HexString

HexString: string

HexString16Bytes

HexString16Bytes: HexString

HexString256Bytes

HexString256Bytes: HexString

HexString32Bytes

HexString32Bytes: HexString

HexString8Bytes

HexString8Bytes: HexString

HexStringBytes

HexStringBytes: HexString

HexStringSingleByte

HexStringSingleByte: HexString

IndexKeysForArray

IndexKeysForArray<A>: Exclude<keyof A, keyof []>

Type parameters

  • A: readonly unknown[]

JsonEventInterface

JsonEventInterface: { anonymous: boolean; indexed: boolean; inputs: Components[]; name: string; type: event }

Type declaration

  • anonymous: boolean
  • indexed: boolean
  • inputs: Components[]
  • name: string
  • type: event

JsonFunctionInterface

JsonFunctionInterface: { inputs: Components[]; name: string; outputs?: AbiInput[]; stateMutability?: string; type: function }

Type declaration

  • inputs: Components[]
  • name: string
  • optionaloutputs?: AbiInput[]
  • optionalstateMutability?: string
  • type: function

JsonRpcBatchRequest

JsonRpcBatchRequest: JsonRpcRequest[]

JsonRpcBatchResponse

JsonRpcBatchResponse<Result, Error>: (JsonRpcResponseWithError<Error> | JsonRpcResponseWithResult<Result>)[]

Type parameters

JsonRpcId

JsonRpcId: string | number | undefined

JsonRpcIdentifier

JsonRpcIdentifier: string & (2.0 | 1.0)

JsonRpcPayload

JsonRpcPayload<Param>: JsonRpcRequest<Param> | JsonRpcBatchRequest

Type parameters

  • Param = unknown[]

JsonRpcResponse

JsonRpcResponse<Result, Error>: JsonRpcResponseWithError<Error> | JsonRpcResponseWithResult<Result> | Result[]

Type parameters

JsonRpcResult

JsonRpcResult: string | number | boolean | Record<string, unknown>

KeyStore

KeyStore: { address: string; crypto: { cipher: Cipher; cipherparams: { iv: string }; ciphertext: string; kdf: pbkdf2 | scrypt; kdfparams: ScryptParams | PBKDF2SHA256Params; mac: HexString }; id: string; version: 3 }

Type declaration

LogAPI

MatchPrimitiveType

MatchPrimitiveType<Type, TypeComponents>: PrimitiveAddressType<Type> | PrimitiveStringType<Type> | PrimitiveBooleanType<Type> | PrimitiveIntegerType<Type> | PrimitiveBytesType<Type> | PrimitiveTupleType<Type, TypeComponents> | never

Type parameters

  • Type: string
  • TypeComponents: ReadonlyArray<AbiParameter> | undefined

Mutable

Mutable<T>: { -readonly [ P in keyof T ]: T[P] }

Type parameters

  • T

NumberTypes

NumberTypes: { NUMBER_BIGINT: bigint; NUMBER_HEX: HexString; NUMBER_NUMBER: number; NUMBER_STR: string }

Type declaration

  • NUMBER_BIGINT: bigint
  • NUMBER_HEX: HexString
  • NUMBER_NUMBER: number
  • NUMBER_STR: string

Numbers

Numbers: number | bigint | string | HexString

Optional

Optional<T, K>: Pick<Partial<T>, K> & Omit<T, K>

Type parameters

  • T
  • K: keyof T

PBKDF2SHA256Params

PBKDF2SHA256Params: { c: number; dklen: number; prf: hmac-sha256; salt: Buffer | string }

Type declaration

  • c: number
  • dklen: number
  • prf: hmac-sha256
  • salt: Buffer | string

PopulatedUnsignedTransaction

PrimitiveAddressType

PrimitiveAddressType<Type>: Type extends `address[${infer Size}]` ? _TypedArray<Address, Size> : Type extends address ? Address : never

Type parameters

  • Type: string

PrimitiveBooleanType

PrimitiveBooleanType<Type>: Type extends `bool[${infer Size}]` ? _TypedArray<boolean, Size> : Type extends bool ? boolean : never

Type parameters

  • Type: string

PrimitiveBytesType

PrimitiveBytesType<Type>: Type extends `bytes${string}[${infer Size}]` ? _TypedArray<Bytes, Size> : Type extends bytes | `bytes${string}` ? Bytes : never

Type parameters

  • Type: string

PrimitiveIntegerType

PrimitiveIntegerType<Type>: Type extends `uint${string}[${infer Size}]` | `int${string}[${infer Size}]` ? _TypedArray<Numbers, Size> : Type extends uint | int | `int${string}` | `uint${string}` ? Numbers : never

Type parameters

  • Type: string

PrimitiveStringType

PrimitiveStringType<Type>: Type extends `string${string}[${infer Size}]` ? _TypedArray<string, Size> : Type extends string | `string${string}` ? string : never

Type parameters

  • Type: string

PrimitiveTupleType

PrimitiveTupleType<Type, TypeComponents>: TypeComponents extends ReadonlyArray<AbiParameter> ? Type extends tuple ? { [ Param in TypeComponents[number] as Param[name] ]: MatchPrimitiveType<Param[type], Param[components]> } : Type extends `tuple[${infer Size}]` ? _TypedArray<{ [ Param in TypeComponents[number] as Param[name] ]: MatchPrimitiveType<Param[type], Param[components]> }, Size> : never : never

Type parameters

  • Type: string
  • TypeComponents: ReadonlyArray<AbiParameter> | undefined = []

ScryptParams

ScryptParams: { dklen: number; n: number; p: number; r: number; salt: Buffer | string }

Type declaration

  • dklen: number
  • n: number
  • p: number
  • r: number
  • salt: Buffer | string

Sha3Input

Sha3Input: TypedObject | TypedObjectAbbreviated | Numbers | boolean | object

SupportedProviders

Type parameters

SyncingStatusAPI

SyncingStatusAPI: { currentBlock: Uint; highestBlock: Uint; startingBlock: Uint } | boolean

Topic

TransactionHash

TransactionHash: HexString

TransactionInfoAPI

TransactionInfoAPI: TransactionSignedAPI & { blockHash?: HexString32Bytes; blockNumber?: Uint; from: Address; hash: HexString32Bytes; transactionIndex?: Uint }

TransactionOutput

TransactionOutput: { blockNumber?: Numbers; from?: HexString; gas?: Numbers; gasLimit?: string; input: string; nonce: Numbers; to?: HexString; transactionIndex?: Numbers; value: Numbers } & ({ gasPrice?: never; maxFeePerGas: Numbers; maxPriorityFeePerGas: Numbers } | { gasPrice: Numbers; maxFeePerGas?: never; maxPriorityFeePerGas?: never })

TransactionReceipt

TransactionReceipt: TransactionReceiptBase<Numbers, Bytes, Bytes, Log>

TransactionReceiptAPI

TransactionSignedAPI

TransactionUnsignedAPI

TransactionWithSenderAPI

TransactionWithSenderAPI: TransactionUnsignedAPI & { from: Address }

TypedObject

TypedObject: { type: string; value: EncodingTypes }

Type declaration

TypedObjectAbbreviated

TypedObjectAbbreviated: { t: string; v: EncodingTypes }

Type declaration

Uint

Uint: HexString

Uint256

Uint256: HexString

Uncles

ValidChains

ValidChains: goerli | kovan | mainnet | rinkeby | ropsten | sepolia

ValueTypes

ValueTypes: address | bool | string | int256 | uint256 | bytes | bigint

Web3APIMethod

Web3APIMethod<T>: string & keyof Exclude<T, unknown>

Type parameters

Web3APIParams

Web3APIParams<API, Method>: API extends Exclude<Web3APISpec, unknown> ? Parameters<API[Method]> : unknown

Type parameters

Web3APIReturnType

Web3APIReturnType<API, Method>: API extends Record<string, (...params: any) => any> ? ReturnType<API[Method]> : any

Type parameters

Web3APISpec

Web3APISpec: Record<string, (...params: any) => any> | unknown

Web3BaseProviderConstructor

Web3BaseProviderConstructor: new <API>(url: string, net?: Socket) => Web3BaseProvider<API>

Type declaration

Web3EthExecutionAPI

Web3EthExecutionAPI: EthExecutionAPI & { eth_chainId: any; eth_getProof: any; eth_pendingTransactions: any; eth_requestAccounts: any; web3_clientVersion: any }

Web3NetAPI

Web3NetAPI: { net_listening: any; net_peerCount: any; net_version: any }

Type declaration

  • net_listening: function
    • net_listening(): boolean

    • Returns boolean

  • net_peerCount: function
    • net_peerCount(): string

    • Returns string

  • net_version: function
    • net_version(): string

    • Returns string

Web3ProviderEventCallback

Web3ProviderEventCallback<T>: (error: Error | ProviderRpcError | undefined, result?: JsonRpcSubscriptionResult | JsonRpcNotification<T>) => void

Type parameters

Type declaration

Web3ProviderRequestCallback

Web3ProviderRequestCallback<ResultType>: (err?: Error | Web3Error | null | JsonRpcResponseWithError<Error>, response?: JsonRpcResponseWithResult<ResultType>) => void

Type parameters

  • ResultType = unknown

Type declaration

Web3ProviderStatus

Web3ProviderStatus: connecting | connected | disconnected

Variables

constDEFAULT_RETURN_FORMAT

DEFAULT_RETURN_FORMAT: { bytes: HEX; number: BIGINT } = ...

Type declaration

  • bytes: HEX
  • number: BIGINT

constETH_DATA_FORMAT

ETH_DATA_FORMAT: { bytes: HEX; number: HEX } = ...

Type declaration

  • bytes: HEX
  • number: HEX

constTypedArray

TypedArray: any = ...