Peers
public struct Peers: APIService
-
Get a peer by ip and port
Declaration
Swift
public func peer(ip: String, port: Int, completionHandler: @escaping (Response<PeerResponse>) -> Void)
-
List peers
Declaration
Swift
public func peers(state: PeerModel.State? = nil, version: String? = nil, os: String? = nil, limit: UInt? = nil, offset: UInt? = nil, orderBy: OrderBy? = nil, join: PropertyJoin = .or, completionHandler: @escaping (Response<PeersResponse>) -> Void)
Parameters
state
state of peer
version
version of peer
os
os of peer
limit
limit number of returned transactions
offset
used for paging, offset by certain number of transactions
orderBy
sort results by a column and direction
join
defaults to ‘or’, specify ‘and’ for an AND join of passed in parameters
-
Returns current nodes version and build
Declaration
Swift
public func version(completionHandler: @escaping (Response<VersionResponse>) -> Void)
-
Undocumented
See moreDeclaration
Swift
public struct VersionResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct PeerResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct PeersResponse: APIResponse