Blocks
public struct Blocks: APIService
-
Undocumented
See moreDeclaration
Swift
public struct FeesResponse: APIResponse
-
Get a block by id
Declaration
Swift
public func block(id: String, completionHandler: @escaping (Response<BlockResponse>) -> Void)
-
blocks(generatorPublicKey:height:previousBlock:totalAmount:totalFee:limit:offset:orderBy:join:completionHandler:)
List blocks
Declaration
Swift
public func blocks(generatorPublicKey: String? = nil, height: Int? = nil, previousBlock: String? = nil, totalAmount: Int? = nil, totalFee: Int? = nil, limit: UInt? = nil, offset: UInt? = nil, orderBy: OrderBy? = nil, join: PropertyJoin = .or, completionHandler: @escaping (Response<BlocksResponse>) -> Void)
Parameters
generatorPublicKey
who generated the block
height
height of block
previousBlock
previous block
totalAmount
total amount in block
totalFee
total fee of block
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
-
Get current status
Declaration
Swift
public func status(completionHandler: @escaping (Response<StatusResponse>) -> Void)
-
Get current fee
Declaration
Swift
public func fee(completionHandler: @escaping (Response<FeeResponse>) -> Void)
-
Get current fees
Declaration
Swift
public func fees(completionHandler: @escaping (Response<FeesResponse>) -> Void)
-
Get current reward
Declaration
Swift
public func reward(completionHandler: @escaping (Response<RewardResponse>) -> Void)
-
Get current supply
Declaration
Swift
public func supply(completionHandler: @escaping (Response<SupplyResponse>) -> Void)
-
Get current height
Declaration
Swift
public func height(completionHandler: @escaping (Response<HeightResponse>) -> Void)
-
Get current nethash
Declaration
Swift
public func nethash(completionHandler: @escaping (Response<NethashResponse>) -> Void)
-
Get current milestone
Declaration
Swift
public func milestone(completionHandler: @escaping (Response<MilestoneResponse>) -> Void)
-
Undocumented
See moreDeclaration
Swift
public struct SupplyResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct RewardResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct StatusResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct HeightResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct FeeResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct MilestoneResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct NethashResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct BlockResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct BlocksResponse: APIResponse