<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/RPCParam/encode(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin8RPCParamO6encode2toys7Encoder_p_tKF"
  },
  "title" : "encode(to:)"
}
-->

# encode(to:)

```
func encode(to encoder: any Encoder) throws
```