Blocks

public struct Blocks: APIService

Blocks - https://docs.lisk.io/docs/lisk-api-080-blocks

  • 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