Get kv table rows
post
Returns an object containing rows from the specified kv table.
Body
codestringRequired
The name of the smart contract that controls the provided kv table
tablestringRequired
The name of the kv table to query
index_namestringRequired
The name of primary or secondary index
encode_typestring ( 'bytes' for arbitray binary index value )Optional
Type of key specified by index_position (for example - uint64_t
or name
)
index_valuestringOptional
index value used for point query encoded as 'encode_type'
lower_boundstringOptional
lower bound index value for ranged query. Query result includes rows specified with lower_bound
upper_boundstringOptional
upper bound index value for ranged query. Query result doesn't include rows specified with upper_bound
limitinteger · int32Optional
Limit number of results returned.
reversebooleanOptional
Reverse the order of returned results
Responses
200
OK
application/json
post
POST /v1/chain/get_kv_table_rows HTTP/1.1
Host: eos.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 157
{
"code": "text",
"table": "text",
"index_name": "text",
"encode_type": null,
"index_value": "text",
"lower_bound": "text",
"upper_bound": "text",
"limit": 1,
"reverse": true
}
200
OK
{
"rows": []
}