Skip to content

RequestAPI

bigearsenal edited this page May 17, 2022 · 1 revision

RequestAPI

public struct RequestAPI: Encodable 

Inheritance

Encodable

Initializers

init(method:params:)

public init(method: String, params: [Encodable]) 

Properties

id

public let id = UUID().uuidString

method

public let method: String

jsonrpc

public let jsonrpc: String = "2.0"

params

public let params: [Encodable]

Methods

encode(to:)

public func encode(to encoder: Encoder) throws 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally