Instance Method
call(_:params:)
Returns raw JSON-RPC response data. Caller decodes as needed.
func call(_ method: String, params: [RPCParam] = []) async throws -> Data
Parameters
-
method
-
The RPC method name.
-
params
-
The parameters to pass to the RPC method.
Return Value
The raw response Data.
Discussion
Rare use case (<1% of calls) — typed methods cover ~94 RPCs.
Throws
RPCError if the response contains a JSON-RPC error, or transport errors.