// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved. import Foundation public struct OxenDaemonRPCRequest: Encodable { private enum CodingKeys: String, CodingKey { case endpoint case body = "params" } private let endpoint: String private let body: T public init( endpoint: SnodeAPI.Endpoint, body: T ) { self.endpoint = endpoint.rawValue self.body = body } }