Get table rows

Returns an object containing rows from the specified table.

POSThttps://eos.nownodes.io/v1/chain/get_table_rows
Body
code*string

The name of the smart contract that controls the provided table

table*string

The name of the table to query

scope*string

The account to which this data belongs

index_positionstring

Position of the index used, accepted parameters primary, secondary, tertiary, fourth, fifth, sixth, seventh, eighth, ninth , tenth

key_typestring

Type of key specified by index_position (for example - uint64_t or name)

encode_typestring
lower_boundstring

Filters results to return the first element that is not less than provided value in set

upper_boundstring

Filters results to return the first element that is greater than provided value in set

limitinteger (int32)

Limit number of results returned.

reverseboolean

Reverse the order of returned results

show_payerboolean

Show RAM payer

Response

OK

Body
rowsarray of any
Request
const response = await fetch('https://eos.nownodes.io/v1/chain/get_table_rows', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "code": "text",
      "table": "text",
      "scope": "text"
    }),
});
const data = await response.json();
Response
{
  "rows": []
}