Fetching Table
To fetch a table in zeus is easy, setup with:
Secondary index example
rpc β rpc for leap instance
code βThe account who owns the table
table β The name of the table as specified by the contract abi
scope β The scope within the contract in which the table is found
keys βKeys to satisfy secondary index query
limit = 1 β limit of amount of rows to return
key_type β secondary index type,
i64, i128, i256, float64, float128, ripemd160, sha256
index_position β Index number, 1 β primary (first), 2 β secondary index (in order defined by multi_index), 3 β third index, etc
Last updated
Was this helpful?