Documentation ¶
Index ¶
Constants ¶
View Source
const MethodGetBlockByNumber = "eth_getBlockByNumber"
Variables ¶
This section is empty.
Functions ¶
func CallBatch ¶
func CallBatch(ctx context.Context, client superwatcher.EthClientRPC, batchCalls []Interface) error
CallBatch gets []rpc.BatchElem from each batchCall.Marshal() in |batchCalls|. It then used |ctx| and the slice []rpc.BatchElem to call client.BatchCallContext. After the client call, it interates through |calls| calling Unmarshal. This means that batchCalls will have their values updated from Unmarshal after CallBatch returns.
Types ¶
Click to show internal directories.
Click to hide internal directories.