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
generatorPublicKeywho generated the block
heightheight of block
previousBlockprevious block
totalAmounttotal amount in block
totalFeetotal fee of block
limitlimit number of returned transactions
offsetused for paging, offset by certain number of transactions
orderBysort results by a column and direction
joindefaults 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
View on GitHub
Blocks Structure Reference