Data
Returns data (value) associated with a given key of a given key-value store. Check detailed documentation for explanation
Body
all ofOptionalExample:
{"key_value_store_address":"<key-value-store-address>","keys":[{"key_hex":"5C21010901000000"},{"key_json":{"kind":"Tuple","fields":[{"kind":"U32","value":"1"}]}}]}
Responses
200
Non-Fungible ID Data
application/json
Responseall of
4XX
Client-originated request error
application/json
post
POST /state/key-value-store/data HTTP/1.1
Host: xrd-gateway.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"key_value_store_address": "<key-value-store-address>",
"keys": [
{
"key_hex": "5C21010901000000"
},
{
"key_json": {
"kind": "Tuple",
"fields": [
{
"kind": "U32",
"value": "1"
}
]
}
}
]
}
{
"ledger_state": {
"network": "<network-name>",
"state_version": 1,
"proposer_round_timestamp": "text",
"epoch": 1,
"round": 1
},
"key_value_store_address": "text",
"entries": [
{
"key": {
"raw_hex": "text",
"programmatic_json": {
"kind": "Bool",
"type_name": "text",
"field_name": "text"
}
},
"value": {
"raw_hex": "text",
"programmatic_json": {
"kind": "Bool",
"type_name": "text",
"field_name": "text"
}
},
"last_updated_at_state_version": 1,
"is_locked": true
}
]
}