Tables

Tables Api

Get table item (v2)

post

Example of body

{
  "key_type": "u64",
  "value_type": "0x1::multisig_voting::Proposal<0x1::governance_proposal::GovernanceProposal>",
  "key": "12"
}
{
  "key_type": "u64",
  "value_type": "0x1::string::String",
  "key": "42"
}
Path parameters
table_handlestringRequired

Table handle to lookup. Should be retrieved using account resources API.

Body

Describes body of the Table item request by item key.

key_typestringRequired

Move Type describing key.

value_typestringRequired

Move Type describing the pointing value type.

keystringRequired

Key of the item being queried.

Responses
200
Item of the table
application/json
Responseone of

An enum of the possible Move value types.

or
or
or
or
or
or
or
or
or
or
or
post
POST /rpc/v2/tables/{table_handle}/item HTTP/1.1
Host: rpc-mainnet.supra.com
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "key_type": "text",
  "value_type": "text",
  "key": "text"
}
200

Item of the table

{
  "U8": 1
}