Functions
Const call
- call(url: string, params: [{ data?: undefined | string; from?: undefined | string; gas?: undefined | number; gasPrice?: undefined | number; to: string; value?: undefined | number }, Tag]): Promise<string>
-
Parameters
-
url: string
-
params: [{ data?: undefined | string; from?: undefined | string; gas?: undefined | number; gasPrice?: undefined | number; to: string; value?: undefined | number }, Tag]
Returns Promise<string>
Const getBalance
- getBalance(url: string, address: string): Promise<bigint>
-
Parameters
-
url: string
-
address: string
Returns Promise<bigint>
Const getChainId
- getChainId(url: string): Promise<number>
-
Parameters
Returns Promise<number>
Const getRequestData
- getRequestData<T>(method: T["method"], params: T["params"]): Request<T>
-
Type parameters
Parameters
-
method: T["method"]
-
params: T["params"]
Const getVersion
- getVersion(url: string): Promise<number>
-
Parameters
Returns Promise<number>
Const sendRequest
-
Type parameters
Parameters
Returns Promise<Response<T>>
Send an
eth_call
call to the node.