On-Chain Table Schema
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/schemaimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/schema"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"columns": [
{
"name": "<string>",
"type": "<string>",
"comment": "<string>"
}
],
"database": "<string>",
"table": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseOnchainSchemaTable.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Onchain
Table Schema
GET
/
gateway
/
v1
/
onchain
/
schema
On-Chain Table Schema
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/schemaimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/schema"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"columns": [
{
"name": "<string>",
"type": "<string>",
"comment": "<string>"
}
],
"database": "<string>",
"table": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseOnchainSchemaTable.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}⌘I