Client
public class Client
Steem-flavoured JSON-RPC 2.0 client.
-
The RPC Server address.
Declaration
Swift
public let address: URL -
Create a new client instance.
Declaration
Swift
public init(address: URL, session: URLSession = URLSession.shared)Parameters
addressThe rpc server to connect to.
sessionThe session to use when sending requests to the server.
-
Blocking
.send(..).Warning
This should never be called from the main thread.Declaration
Swift
public func sendSynchronous<T>(_ request: T) throws -> T.Response! where T : Request
-
Steem-style date formatter (ISO 8601 minus Z at the end).
Declaration
Swift
public static let dateFormatter: DateFormatter -
Returns a JSONDecoder instance configured for the Steem JSON format.
Declaration
Swift
public static func JSONDecoder() -> Foundation.JSONDecoder -
Returns a JSONEncoder instance configured for the Steem JSON format.
Declaration
Swift
public static func JSONEncoder() -> Foundation.JSONEncoder
View on GitHub
Client Class Reference