EosioRpcBlockRequest
public struct EosioRpcBlockRequest : Codable
Request struct for requests to v1/chain/get_block.
To be compatible with EOSIO SDK for Swift, RPC endpoints must, at a minimum, accept these parameters.
-
The number or ID of the block you are fetching.
Declaration
Swift
@available(*, deprecated, message: "Please use blockNumberOrId instead.") public var blockNumOrId: UInt64 { get set } -
The number or ID of the block you are fetching.
Declaration
Swift
public var blockNumberOrId: String -
Initialize an
EosioRpcBlockRequestwith a block number.Declaration
Swift
public init(blockNumOrId: UInt64 = 1) -
Initialize an
EosioRpcBlockRequestwith a block number or id.Declaration
Swift
public init(blockNumOrId: String)
View on GitHub
EosioRpcBlockRequest Structure Reference