EosioRpcBlockInfoRequest

public struct EosioRpcBlockInfoRequest : Codable

Request struct for requests to v1/chain/get_block_info. To be compatible with EOSIO SDK for Swift, RPC endpoints must, at a minimum, accept these parameters.

  • Block number to retrieve

    Declaration

    Swift

    public var blockNum: UInt64
  • Initialize an EosioRpcBlockInfoRequest with a numeric block number.

    Declaration

    Swift

    public init(blockNum: UInt64)
  • Initialize an EosioRpcBlockInfoRequest with a String block number. Note: This is not the block id.

    Declaration

    Swift

    public init?(blockNumString: String)