<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/CookieTransport/send(_:path:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin15CookieTransportV4send_4path10Foundation4DataVAA14JSONRPCRequestV_SSSgtYaKF"
  },
  "title" : "send(_:path:)"
}
-->

# 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.).