{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "cardano-query-layer.json", "title": "Cardano Query Layer types", "definitions": { "utxos/asset:request": { "title": "utxos by asset", "type": "object", "properties": { "asset_name": { "$ref": "cardano-conway.json#/definitions/AssetName" }, "minting_policy_hash": { "$ref": "cardano-conway.json#/definitions/ScriptHash" } } }, "utxos/asset:response": { "title": "utxos by asset", "type": "object", "properties": { "utxos": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/TransactionUnspentOutput" }, { "$ref": "cardano-babbage.json#/definitions/TransactionUnspentOutput" } ] } } } }, "utxos/transaction_hash:request": { "title": "utxos by transaction_hash", "type": "object", "$ref": "cardano-conway.json#/definitions/TransactionHash" }, "utxos/transaction_hash:response": { "title": "utxos by transaction_hash", "type": "object", "properties": { "utxos": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/TransactionUnspentOutput" }, { "$ref": "cardano-babbage.json#/definitions/TransactionUnspentOutput" } ] } } } }, "utxos/address:request": { "title": "utxos by address", "type": "object", "$ref": "cardano-babbage.json#/definitions/Address" }, "utxos/address:response": { "title": "utxos by address", "type": "object", "properties": { "utxos": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/TransactionUnspentOutput" }, { "$ref": "cardano-babbage.json#/definitions/TransactionUnspentOutput" } ] } } } }, "utxos/payment_credential:request": { "title": "utxos by payment_credential", "type": "object", "$ref": "cardano-conway.json#/definitions/Credential" }, "utxos/payment_credential:response": { "title": "utxos by payment_credential", "type": "object", "properties": { "utxos": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/TransactionUnspentOutput" }, { "$ref": "cardano-babbage.json#/definitions/TransactionUnspentOutput" } ] } } } }, "utxos/stake_credential:request": { "title": "utxos by stake_credential", "type": "object", "$ref": "cardano-conway.json#/definitions/RewardAddress" }, "utxos/stake_credential:response": { "title": "utxos by stake_credential", "type": "object", "properties": { "utxos": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/TransactionUnspentOutput" }, { "$ref": "cardano-babbage.json#/definitions/TransactionUnspentOutput" } ] } } } }, "block/number:request": { "title": "block by number", "type": "object", "$ref": "cardano-conway.json#/definitions/UInt64" }, "block/number:response": { "title": "block by number", "type": "object", "anyOf": [ { "$ref": "cardano-conway.json#/definitions/Block" }, { "$ref": "cardano-babbage.json#/definitions/Block" } ] }, "block/hash:request": { "title": "block by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/BlockHash" }, "block/hash:response": { "title": "block by hash", "type": "object", "anyOf": [ { "$ref": "cardano-conway.json#/definitions/Block" }, { "$ref": "cardano-babbage.json#/definitions/Block" } ] }, "transaction/hash:request": { "title": "transaction by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/TransactionHash" }, "transaction/hash:response": { "title": "transaction by hash", "type": "object", "anyOf": [ { "$ref": "cardano-conway.json#/definitions/Transaction" }, { "$ref": "cardano-babbage.json#/definitions/Transaction" } ] }, "transaction/block_number:request": { "title": "transaction by block_number", "type": "object", "$ref": "cardano-conway.json#/definitions/UInt64" }, "transaction/block_number:response": { "title": "transaction by block_number", "type": "object", "properties": { "transactions": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/Transaction" }, { "$ref": "cardano-babbage.json#/definitions/Transaction" } ] } } } }, "transaction/block_hash:request": { "title": "transaction by block_hash", "type": "object", "$ref": "cardano-conway.json#/definitions/BlockHash" }, "transaction/block_hash:response": { "title": "transaction by block_hash", "type": "object", "properties": { "transactions": { "type": "array", "items": { "anyOf": [ { "$ref": "cardano-conway.json#/definitions/Transaction" }, { "$ref": "cardano-babbage.json#/definitions/Transaction" } ] } } } }, "datum/hash:request": { "title": "datum by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/DataHash" }, "datum/hash:response": { "title": "datum by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/PlutusData" }, "plutus_script/hash:request": { "title": "plutus_script by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/ScriptHash" }, "plutus_script/hash:response": { "title": "plutus_script by hash", "type": "object", "anyOf": [ { "$ref": "cardano-conway.json#/definitions/PlutusScript" }, { "$ref": "cardano-babbage.json#/definitions/PlutusScript" } ] }, "native_script/hash:request": { "title": "native_script by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/ScriptHash" }, "native_script/hash:response": { "title": "native_script by hash", "type": "object", "$ref": "cardano-conway.json#/definitions/NativeScript" }, "metadata/transaction_hash:request": { "title": "metadata by transaction_hash", "type": "object", "$ref": "cardano-conway.json#/definitions/TransactionHash" }, "metadata/transaction_hash:response": { "title": "metadata by transaction_hash", "type": "object", "$ref": "cardano-conway.json#/definitions/TransactionMetadatum" }, "protocol_parameters/latest:request": { "title": "protocol_parameters (latest)", "type": "object", "properties": {} }, "protocol_parameters/latest:response": { "title": "protocol_parameters (latest)", "type": "object", "$ref": "query-layer.json#/definitions/ProtocolParams" }, "protocol_parameters/epoch:request": { "title": "protocol_parameters by epoch", "type": "object", "$ref": "cardano-conway.json#/definitions/UInt32" }, "protocol_parameters/epoch:response": { "title": "protocol_parameters by epoch", "type": "object", "$ref": "query-layer.json#/definitions/ProtocolParams" }, "votes/cc_id:request": { "title": "votes by cc_id", "type": "object", "$ref": "query-layer.json#/definitions/CCHotId" }, "votes/cc_id:response": { "title": "votes by cc_id", "type": "object", "properties": { "votes": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/VoteInfo" } } } }, "votes/spo_id:request": { "title": "votes by spo_id", "type": "object", "$ref": "cardano-conway.json#/definitions/PoolPubKeyHash" }, "votes/spo_id:response": { "title": "votes by spo_id", "type": "object", "properties": { "votes": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/VoteInfo" } } } }, "votes/drep_id:request": { "title": "votes by drep_id", "type": "object", "$ref": "query-layer.json#/definitions/DRepId" }, "votes/drep_id:response": { "title": "votes by drep_id", "type": "object", "properties": { "votes": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/VoteInfo" } } } }, "votes/proposal_id:request": { "title": "votes by proposal_id", "type": "object", "$ref": "query-layer.json#/definitions/ProposalId" }, "votes/proposal_id:response": { "title": "votes by proposal_id", "type": "object", "properties": { "votes": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/VoteInfo" } } } }, "drep/all:request": { "title": "drep (all)", "type": "object", "properties": {} }, "drep/all:response": { "title": "drep (all)", "type": "object", "properties": { "dreps": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/DRepInfo" } } } }, "drep/id:request": { "title": "drep by id", "type": "object", "$ref": "query-layer.json#/definitions/DRepId" }, "drep/id:response": { "title": "drep by id", "type": "object", "$ref": "query-layer.json#/definitions/DRepInfo" }, "drep/stake_credential:request": { "title": "drep by stake_credential", "type": "object", "$ref": "cardano-conway.json#/definitions/RewardAddress" }, "drep/stake_credential:response": { "title": "drep by stake_credential", "type": "object", "$ref": "query-layer.json#/definitions/DRepInfo" }, "committee/all:request": { "title": "committee (all)", "type": "object", "properties": {} }, "committee/all:response": { "title": "committee (all)", "type": "object", "properties": { "cc_members": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/CCMember" } } } }, "committee/id:request": { "title": "committee by id", "type": "object", "$ref": "query-layer.json#/definitions/CCHotId" }, "committee/id:response": { "title": "committee by id", "type": "object", "$ref": "query-layer.json#/definitions/CCMember" }, "pool/all:request": { "title": "pool (all)", "type": "object", "properties": {} }, "pool/all:response": { "title": "pool (all)", "type": "object", "properties": { "pools": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/Pool" } } } }, "pool/id:request": { "title": "pool by id", "type": "object", "$ref": "cardano-conway.json#/definitions/PoolPubKeyHash" }, "pool/id:response": { "title": "pool by id", "type": "object", "$ref": "query-layer.json#/definitions/Pool" }, "proposal/all:request": { "title": "proposal (all)", "type": "object", "properties": {} }, "proposal/all:response": { "title": "proposal (all)", "type": "object", "properties": { "proposals": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/Proposal" } } } }, "proposal/id:request": { "title": "proposal by id", "type": "object", "$ref": "query-layer.json#/definitions/ProposalId" }, "proposal/id:response": { "title": "proposal by id", "type": "object", "$ref": "query-layer.json#/definitions/Proposal" }, "era/summary:request": { "title": "era summary", "type": "object", "properties": {} }, "era/summary:response": { "title": "era summary", "type": "object", "properties": { "summary": { "type": "array", "items": { "$ref": "query-layer.json#/definitions/EraSummary" } } } } } }