Skip to main content

web3-core

Index

References

inputAddressFormatter

inputBlockNumberFormatter

inputCallFormatter

inputDefaultBlockNumberFormatter

inputLogFormatter

inputPostFormatter

inputSignFormatter

inputStorageKeysFormatter

inputTopicFormatter

inputTransactionFormatter

outputBigIntegerFormatter

outputBlockFormatter

outputLogFormatter

outputPostFormatter

outputProofFormatter

outputSyncingFormatter

outputTransactionFormatter

outputTransactionReceiptFormatter

txInputOptionsFormatter

Type Aliases

CustomTransactionSchema

CustomTransactionSchema: { properties: Record<string, Schema>; type: string }

Type declaration

  • properties: Record<string, Schema>
  • type: string

PromiseExecutor

PromiseExecutor<T>: (resolve: (data: T) => void, reject: (reason: unknown) => void) => void

Type parameters

  • T

Type declaration

    • (resolve: (data: T) => void, reject: (reason: unknown) => void): void
    • Parameters

      • resolve: (data: T) => void
      • reject: (reason: unknown) => void

      Returns void

TransactionBuilder

TransactionBuilder<API>: <ReturnType>(options: { fillGasPrice?: boolean; privateKey?: HexString | Uint8Array; transaction: Transaction; web3Context: Web3Context<API> }) => Promise<ReturnType>

Type parameters

Type declaration

    • <ReturnType>(options: { fillGasPrice?: boolean; privateKey?: HexString | Uint8Array; transaction: Transaction; web3Context: Web3Context<API> }): Promise<ReturnType>

TransactionTypeParser

TransactionTypeParser: (transaction: Transaction) => HexString | undefined

Type declaration

Web3ContextConstructor

Web3ContextConstructor<T, T2>: new (...args: [extras: T2, context: Web3ContextObject]) => T

Type parameters

Type declaration

Web3ContextFactory

Web3ContextFactory<T, T2>: Web3ContextConstructor<T, T2> & { fromContextObject: any }

Type parameters

Web3ContextInitOptions

Web3ContextInitOptions<API, RegisteredSubs>: { accountProvider?: Web3AccountProvider<Web3BaseWalletAccount>; config?: Partial<Web3ConfigOptions>; provider?: SupportedProviders<API> | string; registeredSubscriptions?: RegisteredSubs; requestManager?: Web3RequestManager<API>; requestManagerMiddleware?: RequestManagerMiddleware<API>; subscriptionManager?: Web3SubscriptionManager<API, RegisteredSubs>; wallet?: Web3BaseWallet<Web3BaseWalletAccount> }

Type parameters

Type declaration

Web3ContextObject

Web3ContextObject<API, RegisteredSubs>: { accountProvider?: Web3AccountProvider<Web3BaseWalletAccount>; config: Web3ConfigOptions; provider?: SupportedProviders<API> | string; providers: typeof Web3RequestManager.providers; registeredSubscriptions?: RegisteredSubs; requestManager: Web3RequestManager<API>; subscriptionManager?: Web3SubscriptionManager<API, RegisteredSubs>; wallet?: Web3BaseWallet<Web3BaseWalletAccount> }

Type parameters

Type declaration

Web3EventCallback

Web3EventCallback<T>: (params: T) => void | Promise<void>

Type parameters

  • T

Type declaration

    • (params: T): void | Promise<void>
    • Parameters

      • params: T

      Returns void | Promise<void>

Web3EventKey

Web3EventKey<T>: string & keyof T

Type parameters

Web3EventMap

Web3EventMap: Record<string, unknown>

Web3SubscriptionConstructor

Web3SubscriptionConstructor<API, SubscriptionType>: new (args: any, options: { returnFormat?: DataFormat; subscriptionManager: Web3SubscriptionManager<API> } | { requestManager: Web3RequestManager<API>; returnFormat?: DataFormat }) => SubscriptionType | new (args: any, options: { returnFormat?: DataFormat; subscriptionManager: Web3SubscriptionManager<API> }) => SubscriptionType | new (args: any, options: { requestManager: Web3RequestManager<API>; returnFormat?: DataFormat }) => SubscriptionType

Type parameters

Variables

constDEFAULT_BATCH_REQUEST_TIMEOUT

DEFAULT_BATCH_REQUEST_TIMEOUT: 1000 = 1000