Skip to content

fetchFromProvider

fetchFromProvider(url, params): Promise<any>

Parameters

url: string

the URL for the JSON RPC provider

params: rpcParams

the parameters for the JSON-RPC method - refer to https://ethereum.org/en/developers/docs/apis/json-rpc/ for details on RPC methods

Returns

Promise<any>

the result field from the JSON-RPC response

Defined in

node_modules/.pnpm/@ethereumjs+util@9.0.3/node_modules/@ethereumjs/util/dist/esm/provider.d.ts:22