abstractWeb3BaseProvider <API>
Implements
Index
Constructors
constructor
Type parameters
- API: unknown = EthExecutionAPI
Returns Web3BaseProvider<API>
Accessors
public[symbol]
Returns boolean
Methods
publicasEIP1193Provider
Returns Eip1193Compatible<API>
A new instance of the provider with the request method fully compatible with EIP-1193
publicabstractconnect
Returns void
publicabstractdisconnect
Parameters
optionalcode: number
optionaldata: string
Returns void
publicabstractgetStatus
Returns Web3ProviderStatus
publicabstracton
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
publicabstractonce
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
publicoptionalabstractremoveAllListeners
Parameters
type: string
Returns void
publicabstractremoveListener
Parameters
type: disconnect
listener: Web3Eip1193ProviderEventCallback<ProviderRpcError>
Returns void
publicabstractrequest
Type parameters
- Method: string
- ResultType = unknown
Parameters
args: Web3APIPayload<API, Method>
Returns Promise<JsonRpcResponseWithResult<ResultType>>
publicabstractreset
Returns void
publicsend
Type parameters
- ResultType = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
Request Payload
callback: (err: null | Error, response?: JsonRpcResponse<ResultType, JsonRpcResult>) => void
Callback
Returns void
publicsendAsync
Type parameters
- R = JsonRpcResult
- P = unknown
Parameters
payload: JsonRpcPayload<P>
Request Payload
Returns Promise<JsonRpcResponse<R, JsonRpcResult>>
publicabstractsupportsSubscriptions
Returns boolean
publicstaticisWeb3Provider
Parameters
provider: unknown
Returns boolean
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.