Sends an HTTP request and parses the Web3 response envelope.
The response's data() accessor resolves to the inner data field of the gateway envelope ({ code, msg, data, timestamp }); rate-limit information is parsed from the X-OC-* response headers.
data()
data
{ code, msg, data, timestamp }
X-OC-*
The request arguments to be passed to Axios.
Optional
The configuration options for the request.
A Promise that resolves to the API response, including the data and rate limit headers.
Sends an HTTP request and parses the Web3 response envelope.
The response's
data()accessor resolves to the innerdatafield of the gateway envelope ({ code, msg, data, timestamp }); rate-limit information is parsed from theX-OC-*response headers.