The endpoint url starting with http://
The headers provided to the underlying Http Endpoint
OptionalcacheCapacity: number
Custom size of the HttpProvider LRUCache. Defaults to DEFAULT_CAPACITY (1024)
OptionalcacheTtl: number | null
Custom TTL of the HttpProvider LRUCache. Determines how long an object can live in the cache. Defaults to DEFAULT_TTL (30000)
true if connected
OptionalisCacheable: boolean
@pezkuwi/rpc-provider
Name
HttpProvider
Description
The HTTP Provider allows sending requests using HTTP to a HTTP RPC server TCP port. It does not support subscriptions so you won't be able to listen to events such as new blocks or balance changes. It is usually preferable using the [[WsProvider]].
Example
See
[[WsProvider]]