GET All pool key hash OData
GET All pool key hash
Returns every unique pool key hash.
GET /api/core/pools/hashes
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const hashes = await CBI.core.pools.hashes_();
console.log(hashes);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
hashes = await CBI.core.pools.hashes_();
print(hashes);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let hashes_hashes = CBI.core.pools.hashes_(HashMap::new()).await.expect("Failed to call endpoint");
println!("hashes_hashes: {:?}", hashes_hashes);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"id": 1,
"hash_raw": "FTgG280TTd7mmoxSBOOKyARI9iNC+MI8/kt+3w==",
"view": "pool1z5uqdk7dzdxaae5633fqfcu2eqzy3a3rgtuvy087fdld7yws0xt",
"hash_hex": "153806dbcd134ddee69a8c5204e38ac80448f62342f8c23cfe4b7edf"
},
"...",
{
"id": 20,
"hash_raw": "iAVqdFqBve/ZU1nEPnHrUuBMh4UHok6I/zyjwA==",
"view": "pool13qzk5az6sx77lk2nt8zruu0t2tsyepu9q73yaz8l8j3uqxqh9wh",
"hash_hex": "88056a745a81bdefd95359c43e71eb52e04c878507a24e88ff3ca3c0"
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The pool hash unique identifier. |
hash_raw | string(byte) | The raw bytes of the pool hash. |
view | string | The Bech32 encoding of the pool hash. |
hash_hex | string | The hexadecimal encoding of the pool hash. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET All pool key hash OData
Returns every unique pool key hash.
GET /api/core/odata/poolshashes
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const poolshashes = await CBI.core.poolshashes_({ "odata": true });
console.log(poolshashes);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
poolshashes = await CBI.core.poolshashes_(odata=true);
print(poolshashes);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let poolshashes = CBI.core.poolshashes_(HashMap::from([("odata", "true")])).await.expect("Failed to call endpoint");
println!("poolshashes: {:?}", poolshashes);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
{
"@odata.context": "https://cardanobi.io/api/core/odata/$metadata#PoolsHashes",
"value": [
{
"id": 1,
"hash_raw": "FTgG280TTd7mmoxSBOOKyARI9iNC+MI8/kt+3w==",
"view": "pool1z5uqdk7dzdxaae5633fqfcu2eqzy3a3rgtuvy087fdld7yws0xt",
"hash_hex": "153806dbcd134ddee69a8c5204e38ac80448f62342f8c23cfe4b7edf"
},
"...",
{
"id": 20,
"hash_raw": "iAVqdFqBve/ZU1nEPnHrUuBMh4UHok6I/zyjwA==",
"view": "pool13qzk5az6sx77lk2nt8zruu0t2tsyepu9q73yaz8l8j3uqxqh9wh",
"hash_hex": "88056a745a81bdefd95359c43e71eb52e04c878507a24e88ff3ca3c0"
}
],
"@odata.nextLink": "https://cardanobi.io/api/core/odata/poolshashes?$skip=20"
}
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The pool hash unique identifier. |
hash_raw | string(byte) | The raw bytes of the pool hash. |
view | string | The Bech32 encoding of the pool hash. |
hash_hex | string | The hexadecimal encoding of the pool hash. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.