Instance Method
send(_:path:)
Send a JSON-RPC request and return the raw response data.
func send(_ request: JSONRPCRequest, path: String?) async throws -> Data
Parameters
-
request
-
The JSON-RPC request to send.
-
path
-
An optional path suffix (e.g., /wallet/<name> for wallet RPCs).
Return Value
The raw response data from the Bitcoin node.
Discussion
Throws
A transport-level error (network failure, bridge unavailable, etc.).