EosioRpcKvTableRowsRequest
public struct EosioRpcKvTableRowsRequest : Codable
The request type for get_kv_table_rows
RPC requests.
-
Encoding types for
See moreindexValue
,lowerBound
orupperBound
Declaration
Swift
public enum EncodeType : String, Codable
-
The name of the smart contract that controls the provided kv table.
Declaration
Swift
public var code: String
-
The name of the kv table to query.
Declaration
Swift
public var table: String
-
The name of the primary or secondary index.
Declaration
Swift
public var indexName: String
-
The type of key specified by by the
indexName
. This can bebytes
for arbitrary binary index values or C++ types such asuint64_t
orname
forEosioName
values.Declaration
Swift
public var encodeType: EncodeType
-
Should the results be deserialized and returned as json.
Declaration
Swift
public var json: Bool
-
The value used for an exact match query, encoded as the specified
encodeType
.Declaration
Swift
public var indexValue: String?
-
The lower bound value for a ranged query, encoded as the specified
encodeType
. Not used ifindexValue
is specified. Optional ifreverse
istrue
.Declaration
Swift
public var lowerBound: String?
-
The upper bound value for a ranged query, encoded as the specified
encodeType
. Not used ifindexValue is specified
. Optional ifreverse
isfalse
.Declaration
Swift
public var upperBound: String?
-
Limit number of results returned.
Declaration
Swift
public var limit: Int32
-
Reverse the order of returned results.
Declaration
Swift
public var reverse: Bool?
-
Declaration
Swift
public init( code: String, table: String, indexName: String, encodeType: EncodeType = .bytes, json: Bool = true, indexValue: String? = nil, lowerBound: String? = nil, upperBound: String? = nil, limit: Int32 = 10, reverse: Bool? = nil )