Schema

Schema Documentation for ledger-sync

I. Main App

pool_hash

A table for every unique pool key hash.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hash_rawstringThe raw string of the pool hash.
pool_sizenumericThe size of the pool.
epoch_nointeger (32)The raw bytes of the pool hash.
viewstringThe Bech32 encoding of the pool hash.

slot_leader

Every unique slot leader (ie an entity that mines a block). It could be a pool or a leader defined in genesis.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashstringThe hash of of the block producer identifier.
pool_hash_idinteger (64)If the slot leader is a pool, an index into the PoolHash table.
descriptionstringAn auto-generated description of the slot leader.

block

A table for blocks on the chain.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashstringThe hash identifier of the block.
epoch_nointeger (32)The epoch number.
slot_nointeger (64)The slot number.
epoch_slot_nointeger (32)The slot number within an epoch (resets to zero at the start of each epoch).
block_nointeger (64)The block number.
previous_idinteger (64)The Block table index of the previous block.
slot_leader_idinteger (64)The SlotLeader table index of the creator of this block.
sizeinteger (32)The block size (in bytes). Note, this size value is not expected to be the same as the sum of the tx sizes due to the fact that txs being stored in segwit format and oddities in the CBOR encoding.
timetimestampThe block time (UTCTime).
tx_countinteger (64)The number of transactions in this block.
proto_majorinteger (32)The block's major protocol number.
proto_minorinteger (32)The block's major protocol number.
vrf_keystringThe VRF key of the creator of this block.
op_certstringThe hash of the operational certificate of the block producer.
op_cert_counterinteger (64)The value of the counter used to produce the operational certificate.

schema_version

The version of the database schema. Schema versioning is split into three stages as detailed below. This table should only ever have a single row.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
stage_oneinteger (64)Set up PostgreSQL data types (using SQL 'DOMAIN' statements).
stage_twointeger (64)Persistent generated migrations.
stage_threeinteger (64)Set up database views, indices etc.

tx

A table for transactions within a block on the chain.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashinteger (64)The hash identifier of the transaction.
block_idinteger (64)The Block table index of the block that contains this transaction.
block_indexinteger (64)The index of this transaction with the block (zero based).
out_sumnumericThe sum of the transaction outputs .
feenumericThe fees paid for this transaction.
depositinteger (64)Deposit (or deposit refund) in this transaction. Deposits are positive, refunds negative.
sizeinteger (32)The size of the transaction in bytes.
invalid_beforeinteger (64)Transaction in invalid before this slot number.
invalid_hereafterinteger (64)Transaction in invalid at or after this slot number.
valid_contractbooleanFalse if the contract is invalid. True if the contract is valid or there is no contract.
script_sizeinteger (32)The sum of the script sizes (in bytes) of scripts in the transaction.

stake_address

A table of unique stake addresses. Can be an actual address or a script hash. The existance of an entry doesn't mean the address is registered or in fact that is was ever registered.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hash_rawstringThe raw bytes of the stake address hash.
viewstringThe Bech32 encoded version of the stake address.
script_hashstringThe script hash, in case this address is locked by a script.
available_rewardnumericThe total amount of ADA rewards that have been accrued by a stake address

tx_out

A table for transaction outputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
addressstringThe human readable encoding of the output address. Will be Base58 for Byron era addresses and Bech32 for Shelley era.
address_has_scriptbooleanFlag which shows if this address is locked by a script.
address_rawbyteaFlag which shows if this address is locked by a script.
data_hashstringThe hash of the transaction output datum. (NULL for Txs without scripts).
indexsmallintThe index of this transaction output with the transaction.
payment_credstringThe payment credential part of the Shelley address. (NULL for Byron addresses). For a script-locked address, this is the script hash.
token_typeintegerType of token (NATIVE_TOKEN(0),TOKEN(1),ALL_TOKEN_TYPE(2)).
valuenumericThe output value of the transaction output.
inline_datum_idinteger (64)The inline datum of the output, if it has one.
reference_script_idinteger (64)The reference script of the output, if it has one.
stake_address_idinteger (64)The StakeAddress table index for the stake address part of the Shelley address. (NULL for Byron addresses).
tx_idinteger (64)The Tx table index of the transaction that contains this transaction output.

tx_in

A table for transaction inputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
tx_in_idinteger (64)The Tx table index of the transaction that contains this transaction input.
tx_out_indexsmallintThe index within the transaction outputs.
tx_out_idinteger (64)The Tx table index of the transaction that contains the referenced transaction output.
redeemer_idinteger (64)The Redeemer table index which is used to validate this input.

reference_tx_in

A table for reference transaction inputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
tx_in_idinteger (64)The Tx table index of the transaction that contains this transaction input
tx_out_idinteger (64)The Tx table index of the transaction that contains the referenced output.
tx_out_indexsmallintThe index within the transaction outputs.

meta

A table containing metadata about the chain. There will probably only ever be one row in this table.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
network_namestringThe network name.
start_timetimestampThe start time of the network.
versionstring

epoch

Aggregation of data within an epoch.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
blk_countinteger (32)The number of blocks in this epoch.
end_timetimestampThe epoch end time.
feesnumericThe sum of the fees in this epoch.
max_slotintegerThe maximum slots of this epoch
nointegerThe epoch number.
out_sumnumericThe sum of the transaction output values in this epoch.
start_timetimestampThe epoch start time.
tx_countinteger (32)The number of transactions in this epoch.
eraintegerType of era (BYRON_EBB(0),BYRON(1),SHELLEY(2),ALLEGRA(3),MARY(4),ALONZO(5),BABBAGE(6),CONWAY(7)).
rewards_distributednumericThe total amount of ADA that was distributed as staking rewards during a specific epoch.

ada_pots

A table with all the different types of total balances (Shelley only). The treasury and rewards fields will be correct for the whole epoch, but all other fields change block by block.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
depositsnumericThe amount in the obligation pot coming from stake key and pool deposits
epoch_nointeger (32)The epoch number where this AdaPots snapshot was taken.
feesnumericThe amount in the fee pot.
reservesnumericThe amount in the reserves pot.
rewardsnumericThe amount in the rewards pot.
slot_nointeger (64)The slot number where this AdaPots snapshot was taken.
treasurynumericThe amount in the treasury pot.
utxonumericThe amount in the UTxO set.
block_idinteger (64)The Block table index of the block for which this snapshot was taken.

pool_metadata_ref

An on-chain reference to off-chain pool metadata.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashvarcharThe expected hash for the off-chain data.
urlvarcharThe URL for the location of the off-chain data.
pool_idinteger (64)The PoolHash table index of the pool for this reference.
registered_tx_idinteger (64)The Tx table index of the transaction in which provided this metadata reference.

pool_update

An on-chain pool update.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
active_epoch_nointeger (64)The epoch number where this update becomes active.
cert_indexinteger (32)The index of this pool update within the certificates of this transaction.
fixed_costnumericThe fixed per epoch fee (in ADA) this pool charges.
margindoubleThe margin (as a percentage) this pool charges.
pledgenumericThe amount the pool owner pledges to the pool.
vrf_key_hashvarcharThe hash of the pool's VRF key.
meta_idinteger (64)The PoolMetadataRef table index this pool update refers to.
hash_idinteger (64)The PoolHash table index of the pool this update refers to.
registered_tx_idinteger (64)The Tx table index of the transaction in which provided this pool update.
reward_addr_idinteger (64)The StakeAddress table index of this pool's rewards address.

pool_owner

A table containing pool owners.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
pool_update_idinteger (64)The PoolUpdate table index for the pool.
addr_idinteger (64)The StakeAddress table index for the pool owner's stake address.

pool_retire

A table containing information about pools retiring.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
cert_indexinteger (32)The index of this pool retirement within the certificates of this transaction.
retiring_epochinteger (32)The epoch where this pool retires.
announced_tx_idinteger (64)The Tx table index of the transaction where this pool retirement was announced.
hash_idinteger (64)The PoolHash table index of the pool this retirement refers to.

pool_relay

A table containing information about pools relay.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
dns_namestringThe DNS name of the relay (NULLable).
dns_srv_namestringThe DNS service name of the relay (NULLable).
ipv4stringThe IPv4 address of the relay (NULLable).
ipv6stringThe IPv6 address of the relay (NULLable).
portinteger (32)The port number of relay (NULLable).
update_idinteger (64)The PoolUpdate table index this PoolRelay entry refers to.

stake_registration

A table containing stake address registrations.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
cert_indexinteger (32)The index of this stake registration within the certificates of this transaction.
epoch_nointeger (32)The epoch in which the registration took place.
addr_idinteger (64)The StakeAddress table index for the stake address.
tx_idinteger (64)The Tx table index of the transaction where this stake address was registered.

stake_deregistration

A table containing stake address deregistrations.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
cert_indexinteger (32)The index of this stake deregistration within the certificates of this transaction.
epoch_nointeger (32)The epoch in which the deregistration took place.
addr_idinteger (64)The StakeAddress table index for the stake address.
redeemer_idinteger (64)The Redeemer table index that is related with this certificate.
tx_idinteger (64)The Tx table index of the transaction where this stake address was deregistered.

delegation

A table containing delegations from a stake address to a stake pool.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
active_epoch_nointeger (64)The epoch number where this delegation becomes active.
cert_indexinteger (32)The index of this delegation within the certificates of this transaction.
slot_nointeger (64)The slot number of the block that contained this delegation.
addr_idinteger (64)The StakeAddress table index for the stake address.
pool_hash_idinteger (64)The PoolHash table index for the pool being delegated to.
redeemer_idinteger (64)The Redeemer table index that is related with this certificate.
tx_idinteger (64)The Tx table index of the transaction that contained this delegation.

tx_metadata

A table for metadata attached to a transaction.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
bytesbyteaThe raw bytes of the payload.
jsontextThe JSON payload if it can be decoded as JSON.
keynumericThe metadata key.
tx_idinteger (64)The Tx table index of the transaction where this metadata was included.

tx_metadata_hash

A table for hash metadata attached to a transaction.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashstringThe hash of metadata of transaction.

reward

A table for earned staking rewards.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
amountnumericThe reward amount.
earned_epochinteger (64)The epoch in which the reward was earned. For pool and leader rewards spendable in epoch N, this will be N - 2, refund N.
spendable_epochinteger (64)The epoch in which the reward is actually distributed and can be spent.
typestringThe type of the rewards ("leader", "member","reserves","treasury","refund")
addr_idinteger (64)The StakeAddress table index for the stake address that earned the reward.
pool_idinteger (64)The PoolHash table index for the pool the stake address was delegated to when the reward is earned or for the pool that there is a deposit refund.

withdrawal

A table for withdrawals from a reward account.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
amountnumericThe withdrawal amount.
addr_idinteger (64)The StakeAddress table index for the stake address for which the withdrawal is for.
redeemer_idinteger (64)The Redeemer table index that is related with this withdrawal.
tx_idinteger (64)The Tx table index for the transaction that contains this withdrawal.

epoch_stake

A table containing the epoch stake distribution for each epoch.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
amountnumericThe amount being staked.
epoch_nointeger (32)The epoch number.
addr_idinteger (64)The StakeAddress table index for the stake address for this EpochStake entry.
pool_idinteger (64)The PoolHash table index for the pool this entry is delegated to.

treasury

A table for payments from the treasury to a StakeAddress.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
amountnumericThe payment amount.
cert_indexinteger (32)The index of this payment certificate within the certificates of this transaction.
addr_idinteger (64)The StakeAddress table index for the stake address for this Treasury entry.
tx_idinteger (64)The Tx table index for the transaction that contains this payment.

reserve

A table for payments from the reserves to a StakeAddress.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
amountnumericThe payment amount.
cert_indexinteger (32)The index of this payment certificate within the certificates of this transaction.
addr_idinteger (64)The StakeAddress table index for the stake address for this Treasury entry.
tx_idinteger (64)The Tx table index for the transaction that contains this payment.

pot_transfer

A table containing transfers between the reserves pot and the treasury pot.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
cert_indexinteger (32)The index of this transfer certificate within the certificates of this transaction.
reservesnumericThe amount the reserves balance changes by.
treasurynumericThe amount the treasury balance changes by.
tx_idinteger (64)The Tx table index for the transaction that contains this transfer.

epoch_sync_time

A table containing the time required to fully sync an epoch.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
nointeger (64)The epoch number for this sync time.
secondsinteger (64)The time (in seconds) required to sync this epoch (may be NULL for an epoch that was already partially synced when db-sync was started).
statestringThe sync state when the sync time is recorded (either 'lagging' or 'following').

multi_asset

A table containing all information the unique policy/name pairs along with a CIP14 asset fingerprint

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
fingerprintstringThe CIP14 fingerprint for the MultiAsset.
namebyteaThe MultiAsset name.
policystringThe MultiAsset policy hash.
unitstringThe MultiAsset unit.
supplynumericThe MultiAsset supply.
timetimestampThe MultiAsset time.
name_viewstringThe MultiAsset name view.

ma_tx_mint

A table containing Multi-Asset mint events.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
quantitynumericThe amount of the Multi Asset to mint (can be negative to "burn" assets).
identinteger (64)The MultiAsset table index specifying the asset.
tx_idinteger (64)The Tx table index for the transaction that contains this minting event.

ma_tx_out

A table containing Multi-Asset transaction outputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
quantitynumericThe Multi Asset transaction output amount (denominated in the Multi Asset).
identinteger (64)The MultiAsset table index specifying the asset.
tx_out_idinteger (64)The TxOut table index for the transaction that this Multi Asset transaction output.

redeemer

A table containing redeemers. A redeemer is provided for all items that are validated by a script.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
feenumericThe budget in fees to run a script. The fees depend on the ExUnits and the current prices. Is null when --disable-ledger is enabled.
indexword31typeThe index of the redeemer pointer in the transaction.
purposestringWhat kind pf validation this redeemer is used for. It can be one of 'spend', 'mint', 'cert', 'reward'.
script_hashstringThe script hash this redeemer is used for.
unit_meminteger (64)The budget in Memory to run a script.
unit_stepsinteger (64)The budget in Cpu steps to run a script.
redeemer_data_idinteger (64)The data related to this redeemer.
tx_idinteger (64)The Tx table index that contains this redeemer.

script

A table containing scripts available, found in witnesses, inlined in outputs (reference outputs) or auxdata of transactions.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
bytesbyteaCBOR encoded plutus script data, null for other script types
hashstringThe Hash of the Script.
jsontextJSON representation of the timelock script, null for other script types
serialised_sizeinteger (32)The size of the CBOR serialised script, if it is a Plutus script.
typestringThe type of the script. This is currenttly either 'timelock' or 'plutus'.
tx_idinteger (64)The Tx table index for the transaction where this script first became available.
verifiedboolCheck the script has been verified.

datum

A table containing Plutus Datum, found in witnesses or inlined in outputs

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
bytesbyteaThe actual data in CBOR format
hashstringThe Hash of the Datum
valuetextThe actual data in JSON format (detailed schema)
tx_idinteger (64)The Tx table index for the transaction where this script first became available.

redeemer_data

A table containing Plutus Redeemer Data. These are always referenced by at least one redeemer. New in v13: split from datum table.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
bytesbyteaThe actual data in CBOR format
hashstringThe Hash of the Plutus Data
valuetextThe actual data in JSON format (detailed schema)
tx_idinteger (64)The Tx table index for the transaction where this script first became available.

extra_key_witness

A table containing transaction extra key witness hashes.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hashstringThe hash of the witness.
tx_idinteger (64)The id of the tx this witness belongs to.

param_proposal

A table containing block chain parameter change proposals.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
coins_per_utxo_sizenumericFor Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte.
collateral_percentinteger (32)The percentage of the txfee which must be provided as collateral when including non-native scripts.
decentralisationdoubleThe decentralisation parameter (1 fully centralised, 0 fully decentralised).
entropystringThe 32 byte string of extra random-ness to be added into the protocol's entropy pool.
epoch_nointeger (64)The epoch for which this parameter proposal in intended to become active. Always null in Conway era.
influencedoubleThe influence of the pledge on a stake pool's probability on minting a block.
keystringThe hash of the crypto key used to sign this proposal. Always null in Conway era.
key_depositnumericThe amount (in Lovelace) require for a deposit to register a StakeAddress.
max_bh_sizenumericThe maximum block header size (in bytes).
max_block_ex_memnumericThe maximum number of execution memory allowed to be used in a single block.
max_block_ex_stepsnumericThe maximum number of execution steps allowed to be used in a single block.
max_block_sizenumericThe maximum block size (in bytes).
max_collateral_inputsinteger (32)The maximum number of collateral inputs allowed in a transaction.
max_epochnumericThe maximum number of epochs in the future that a pool retirement is allowed to be scheduled for.
max_tx_ex_memnumericThe maximum number of execution memory allowed to be used in a single transaction.
max_tx_ex_stepsnumericThe maximum number of execution steps allowed to be used in a single transaction.
max_tx_sizenumericThe maximum transaction size (in bytes).
max_val_sizenumericThe maximum Val size.
min_fee_anumericThe 'a' parameter to calculate the minimum transaction fee.
min_fee_bnumericThe 'b' parameter to calculate the minimum transaction fee.
min_pool_costnumericThe minimum pool cost.
min_utxo_valuenumericThe minimum value of a UTxO entry.
monetary_expand_ratedoubleThe monetary expansion rate.
optimal_pool_countnumericThe optimal number of stake pools.
pool_depositnumericThe amount (in Lovelace) require for a deposit to register a stake pool.
price_memdoubleThe per word cost of script memory usage.
price_stepdoubleThe cost of script execution step usage.
protocol_majorinteger (32)The protocol major number.
protocol_minorinteger (32)The protocol minor number.
treasury_growth_ratedoubleThe treasury growth rate.
cost_model_idinteger (64)The CostModel table index for the proposal.
registered_tx_idinteger (64)The Tx table index for the transaction that contains this parameter proposal.
pvt_motion_no_confidencedoublePool Voting threshold for motion of no-confidence.
pvt_committee_normaldoublePool Voting threshold for new committee/threshold (normal state).
pvt_committee_no_confidencedoublePool Voting threshold for new committee/threshold (state of no-confidence).
pvt_hard_fork_initiationdoublePool Voting threshold for hard-fork initiation.
pvt_p_p_security_groupdoublePool Vote threshold for protocol parameter changes, security group.
pvt_p_p_technical_groupdoublePool Vote threshold for protocol parameter changes, technical group.
pvt_p_p_gov_groupdoublePool Vote threshold for protocol parameter changes, governance group.
pvt_treasury_withdrawaldoublePool Vote threshold for treasury withdrawal.
dvt_motion_no_confidencedoubleDRep Vote threshold for motion of no-confidence.
dvt_committee_normaldoubleDRep Vote threshold for new committee/threshold (normal state).
dvt_committee_no_confidencedoubleDRep Vote threshold for new committee/threshold (state of no-confidence).
dvt_update_to_constitutiondoubleDRep Vote threshold for update to the Constitution.
dvt_hard_fork_initiationdoubleDRep Vote threshold for hard-fork initiation.
dvt_p_p_network_groupdoubleDRep Vote threshold for protocol parameter changes, network group.
dvt_p_p_economic_groupdoubleDRep Vote threshold for protocol parameter changes, economic group.
committee_min_sizenumericMinimal constitutional committee size.
committee_max_term_lengthnumericConstitutional committee term limits.
gov_action_lifetimenumericGovernance action expiration.
gov_action_depositnumericGovernance action deposit.
drep_depositnumericDRep deposit amount.
drep_activitynumericDRep activity period.
min_fee_ref_script_cost_per_bytenumericMin fee ref script cost per byte

epoch_param

The accepted protocol parameters for an epoch.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
coins_per_utxo_sizenumericFor Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte.
collateral_percentinteger (32)The percentage of the txfee which must be provided as collateral when including non-native scripts.
decentralisationdoubleThe decentralisation parameter (1 fully centralised, 0 fully decentralised).
epoch_nointeger (32)The first epoch for which these parameters are valid.
extra_entropystringThe 32 byte string of extra random-ness to be added into the protocol's entropy pool.
influencedoubleThe influence of the pledge on a stake pool's probability on minting a block.
key_depositnumericThe amount require for a deposit to register a StakeAddress.
max_bh_sizeinteger (32)The maximum block header size (in bytes).
max_block_ex_memnumericThe maximum number of execution memory allowed to be used in a single block.
max_block_ex_stepsnumericThe maximum number of execution steps allowed to be used in a single block.
max_block_sizeinteger (32)The maximum block size (in bytes).
max_collateral_inputsinteger (32)The maximum number of collateral inputs allowed in a transaction.
max_epochinteger (32)The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for.
max_tx_ex_memnumericThe maximum number of execution memory allowed to be used in a single transaction.
max_tx_ex_stepsnumericThe maximum number of execution steps allowed to be used in a single transaction.
max_tx_sizeinteger (32)The maximum transaction size (in bytes).
max_val_sizenumericThe maximum Val size.
min_fee_ainteger (32)The 'a' parameter to calculate the minimum transaction fee.
min_fee_binteger (32)The 'b' parameter to calculate the minimum transaction fee.
min_pool_costnumericThe minimum pool cost.
min_utxo_valuenumericThe minimum value of a UTxO entry.
monetary_expand_ratedoubleThe monetary expansion rate.
noncestringThe nonce value for this epoch.
optimal_pool_countinteger (32)The optimal number of stake pools.
pool_depositnumericThe amount (in Lovelace) require for a deposit to register a stake pool.
price_memdoubleThe per word cost of script memory usage.
price_stepdoubleThe cost of script execution step usage.
protocol_majorinteger (32)The protocol major number.
protocol_minorinteger (32)The protocol minor number.
treasury_growth_ratedoubleThe treasury growth rate.
block_idinteger (64)The Block table index for the first block where these parameters are valid.
cost_model_idinteger (64)The CostModel table index for the params.
pvt_motion_no_confidencedoublePool Voting threshold for motion of no-confidence.
pvt_committee_normaldoublePool Voting threshold for new committee/threshold (normal state).
pvt_committee_no_confidencedoublePool Voting threshold for new committee/threshold (state of no-confidence).
pvt_hard_fork_initiationdoublePool Voting threshold for hard-fork initiation.
pvt_p_p_security_groupdoublePool Vote threshold for protocol parameter changes, security group.
pvt_p_p_technical_groupdoublePool Vote threshold for protocol parameter changes, technical group.
pvt_p_p_gov_groupdoublePool Vote threshold for protocol parameter changes, governance group.
pvt_treasury_withdrawaldoublePool Vote threshold for treasury withdrawal.
dvt_motion_no_confidencedoubleDRep Vote threshold for motion of no-confidence.
dvt_committee_normaldoubleDRep Vote threshold for new committee/threshold (normal state).
dvt_committee_no_confidencedoubleDRep Vote threshold for new committee/threshold (state of no-confidence).
dvt_update_to_constitutiondoubleDRep Vote threshold for update to the Constitution.
dvt_hard_fork_initiationdoubleDRep Vote threshold for hard-fork initiation.
dvt_p_p_network_groupdoubleDRep Vote threshold for protocol parameter changes, network group.
dvt_p_p_economic_groupdoubleDRep Vote threshold for protocol parameter changes, economic group.
committee_min_sizenumericMinimal constitutional committee size.
committee_max_term_lengthnumericConstitutional committee term limits.
gov_action_lifetimenumericGovernance action expiration.
gov_action_depositnumericGovernance action deposit.
drep_depositnumericDRep deposit amount.
drep_activitynumericDRep activity period.
min_fee_ref_script_cost_per_bytenumericMin fee ref script cost per byte

cost_model

CostModel for EpochParam and ParamProposal.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
coststextThe actual costs formatted as json.
hashstringThe hash of cost model. It ensures uniqueness of entries.

reserved_pool_ticker

A table containing a managed list of reserved ticker names.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
namestringThe ticker name.
pool_hashstringThe hash of the pool that owns this ticker.

delisted_pool

A table containing pools that have been delisted.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
hash_rawstringThe pool hash

unconsume_tx_in

A table for unconsume transaction inputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
tx_in_idinteger (64)The Tx table index of the transaction that contains this transaction input.
tx_out_indexsmallintThe index within the transaction outputs.
tx_out_idinteger (64)The Tx table index of the transaction that contains the referenced transaction output.
redeemer_idinteger (64)The Redeemer table index which is used to validate this input.

tx_witnesses

A table for transaction witnesses.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
tx_idinteger (64)The Tx table index of the transaction.
keystringKey used for signing the transaction.
signaturestringThe signature of the transaction.
index_arrinteger[]Array containing the transaction index.
index_arr_sizeinteger (32)Size of index array.
typestringType of transaction witnesses.

tx_bootstrap_witnesses

A table for transaction bootstrap witnesses.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
tx_idinteger (64)The Tx table index of the transaction.
public_keystringPublic key of the transaction.
signaturestringThe signature of the transaction.
chain_codestringThe chain code of the transaction.
attributesstringThe attributes of the transaction.

rollback_history

A table for rollback history.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
block_hashstringThe hash of block.
block_nointeger (64)The number of hash.
rollback_timetimestampRollback time.
slot_nointeger (64)The slot number.

pool_offline_data

The pool offchain (ie not on chain) for a stake pool.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
bytesbyteaThe raw bytes of the payload.
hashstringThe hash identifier of the pool.
jsonstringThe payload as JSON. .
ticker_namestringThe pool's ticker name.
pool_idinteger (64)The pool index.
pmr_idinteger (64)The PoolMetadataRef table index for this offchain data.
pool_namestringName of pool.
logo_urlstringLogo url of pool.
icon_urlstringIcon url of pool.

pool_offline_fetch_error

A table containing pool offchain data fetch errors.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
fetch_errorstringThe text of the error.
fetch_timetimestampThe UTC time stamp of the error.
retry_countinteger (32)The number of retries.
pool_idinteger (64)The PoolHash table index for the pool this offchain fetch error refers.
pmr_idinteger (64)The PoolMetadataRef table index for this offchain data.

failed_tx_out

A table for transaction collateral outputs.

  • Primary Id: id
Column nameTypeDescription
idinteger (64)
addressstringThe human readable encoding of the output address. Will be Base58 for Byron era addresses and Bech32 for Shelley era.
address_has_scriptbooleanFlag which shows if this address is locked by a script.
address_rawbyteaFlag which shows if this address is locked by a script.
data_hashstringThe hash of the transaction output datum. (NULL for Txs without scripts).
indexsmallintThe index of this transaction output with the transaction.
multi_assets_descrtextThis is a description of the multiassets in collateral output. Since the output is not really created, we don't need to add them in separate tables.
payment_credstringThe payment credential part of the Shelley address. (NULL for Byron addresses). For a script-locked address, this is the script hash.
valuenumericThe output value (in Lovelace) of the transaction output.
inline_datum_idinteger (64)The inline datum of the output, if it has one.
reference_script_idinteger (64)The reference script of the output, if it has one.
stake_address_idinteger (64)The StakeAddress table index for the stake address part of the Shelley address. (NULL for Byron addresses).
tx_idinteger (64)The Tx table index of the transaction that contains this transaction output.

committee_deregistration

A table for every committee key de-registration.

  • Primary Id: {tx_hash, cert_index}
Column nameTypeDescription
tx_hashstringHash of the tx that includes this certificate.
cert_indexinteger (32)The index of this deregistration within the certificates of this transaction.
anchor_urlstringURL that links to documents or additional information about deregistering a committee key
anchor_hashstringHash of anchor_url
cold_keystringThe deregistered cold key.
cred_typestringCredential type used in deregistration (ADDR_KEYHASH, SCRIPTHASH).
epochinteger (32)The epoch number at the time of deregistration.
slotinteger (64)The slot number at the time of deregistration.
blockinteger (64)Block number in the blockchain at the time of deregistration.
block_timeinteger (64)Time of the block containing the deregistration transaction.
update_datetimetimestampThe update time of record

committee_registration

A table for every committee key registration.

  • Primary Id: {tx_hash, cert_index}
Column nameTypeDescription
tx_hashstringHash of the tx that includes this certificate.
cert_indexinteger (32)The index of this registration within the certificates of this transaction.
cold_keystringThe deregistered cold key.
hot_keystringThe deregistered hot key.
cred_typestringCredential type used in registration (ADDR_KEYHASH, SCRIPTHASH).
epochinteger (32)The epoch number at the time of registration.
slotinteger (64)The slot number at the time of registration.
blockinteger (64)Block number in the blockchain at the time of registration.
block_timeinteger (64)Time of the block containing the registration transaction.
update_datetimetimestampThe update time of record

committee_member

A table for members of the committee. A committee can have multiple members.

  • Primary Id: {hash, slot}
Column nameTypeDescription
hashstringThe committee hash.
cred_typestringType of credential (ADDR_KEYHASH, SCRIPTHASH).
start_epochinteger (32)The epoch this member start.
expired_epochinteger (32)The epoch this member expires.
slotinteger (64)Slot number.
update_datetimetimestampThe update time of record

constitution

A table for constitutiona attached to a GovActionProposal.

  • Primary Id: active_epoch
Column nameTypeDescription
active_epochinteger (64)The epoch this constitutiona attached.
anchor_urlstringURL of the document or information source containing the details of the constitution.
anchor_hashstring (64)Hash of anchor_url.
scriptstringThe Script Hash.
slotinteger (64)Slot number.
update_datetimetimestampThe update time of record.

cursor_

Table to track the current block position during synchronization.

  • Primary Id: id
Column nameTypeDescription
idinteger (32)
block_hashstringThe hash of block.
slotinteger (64)Slot number.
block_numberinteger (64)Block number
erainteger (32)Type of era (BYRON_EBB(0),BYRON(1),SHELLEY(2),ALLEGRA(3),MARY(4),ALONZO(5),BABBAGE(6),CONWAY(7)).
prev_block_hashstringThe hash of previous block.
create_datetimetimestampThe create time of record.
update_datetimetimestampThe update time of record.

delegation_vote

A table containing delegations from a stake address to a stake pool.

  • Primary Id: {tx_hash, cert_index}
Column nameTypeDescription
tx_hashstringHash of the tx that includes this certificate.
cert_indexinteger (32)The index of this transfer certificate within the certificates of this transaction.
addressstringThe stake address.
drep_hashstringThe Drep hash for the pool being delegated to.
drep_idstringDrep index for the pool being delegated to.
drep_typestringThe Drep type (ADDR_KEYHASH, SCRIPTHASH, ABSTAIN,NO_CONFIDENCE).
epochinteger (32)The epoch number at the time of delegation vote.
credentialstringThe Certification information related to votes.
cred_typestringThe credential type (ADDR_KEYHASH, SCRIPTHASH).
slotinteger (64)Slot number.
blockinteger (64)Block number.
block_timeinteger (64)Time when the block containing the transaction was created..
update_datetimetimestampThe update time of record

drep_registration

A table for DRep registrations, deregistrations or updates.

  • Primary Id: {tx_hash, cert_index}
Column nameTypeDescription
tx_hashstringHash of the tx
cert_indexinteger (32)The index of this registration within the certificates of this transaction.
typevarchar(50)Type of DREP registration (e.g., stake pool registration, withdrawal)
depositinteger (64)Amount of ADA deposited for specific registration types
drep_hashvarchar(56)Drep hash for the pool being delegated to
drep_idvarchar(255)Unique identifier for a delegated representative (Bech32)
anchor_urlvarcharURL for additional information about the registration
anchor_hashvarchar(64)Hash of the off-chain data pointed to by anchor_url
cred_typevarchar(40)Type of credential used for registration (ADDR_KEYHASH, SCRIPTHASH)
epochinteger (32)Epoch number
slotinteger (64)Slot number
blockinteger (64)Block number
block_timeinteger (64)Block time
update_datetimetimestampDate and time the record was last updated

era

A table for era information

  • Byron(1), Shelley(2), Allegra(3), Mary(4), Alonzo(5), Babbage(6), Conway(7);

  • Primary Id: era

Column nameTypeDescription
erainteger (32)Era identifier
start_slotinteger (64)Slot number at which the era begins
blockinteger (64)Block number that marks the start of the era
block_hashstringHash of the block that starts the era

flyway_schema_history

A table for the execution history of Flyway schema migrations.

Column nameTypeDescription
installed_rankinteger (32)Index the order of the records in the table, determining the order in which changes were applied.
versionstringThe version of the change applied
descriptionstringBrief description of the applied change
typestringType of change
scriptstringThe name of the script file containing the applied changes
checksuminteger (32)Checksum value of the script file, helps detect changes in the script file
installed_bystringThe name of the user or process to which the change was applied
installed_ontimestampTime when the change was applied
execution_timeinteger (32)File execution time
successboolStatus of change

gov_action_proposal

A table contains information about proposed government actions.

  • Primary Id: {tx_hash, idx}
Column nameTypeDescription
tx_hashstringThe hash of the tx that includes this certificate
idxinteger (32)The index of this proposal procedure within its transaction
depositinteger (64)The deposit amount payed for this proposal (in lovelace)
return_addressstringThe reward address that receive the deposit when it is repaid
anchor_urlstringURL for additional information about the proposal
anchor_hashstringHash of the off-chain data pointed to by anchor_url
typestringCan be one of ParameterChange, HardForkInitiation, TreasuryWithdrawals, NoConfidence, NewCommittee, NewConstitution, InfoAction
detailsjsonbJSON document describing the content of governance action
epochinteger (32)Epoch number
slotinteger (64)Slot number
blockinteger (64)Block number
block_timeinteger (64)Block time
update_datetimetimestampDate and time the record was last updated

voting_procedure

A table for voting procedures, aka GovVote. A Vote can be Yes No or Abstain.

  • Primary Id: {tx_hash, voter_hash, gov_action_tx_hash, gov_action_index}
Column nameTypeDescription
tx_hashstringTransaction hash of the tx that includes this VotingProcedure
voter_hashstringHash identifying the voter (not null, part of primary key)
gov_action_tx_hashstringTransaction hash of the governance action
gov_action_indexinteger (32)The index of this proposal procedure within its transaction
iduuidUnique identifier
idxinteger (32)The index of this VotingProcedure within this transaction
voter_typestringThe role of the voter. Can be one of ConstitutionalCommittee, DRep, SPO
votestringThe Vote. Can be one of Yes, No, Abstain
anchor_urlstringURL for additional information about the vote
anchor_hashstringHash of the off-chain data pointed to by anchor_url
epochinteger (32)Epoch number
slotinteger (64)Slot number
blockinteger (64)Block number
block_timeinteger (64)Block time
update_datetimetimestampDate and time the record was last updated

committee

A table for new committee information

  • Primary Id: epoch
Column nameTypeDescription
gov_action_tx_hashstring (64)Transaction hash of the corresponding governance action proposal
gov_action_indexinteger(32)The index of the corresponding governance action proposal within its transaction
threshold_numeratorinteger (64)Threshold numerator
threshold_denominatorinteger (64)Threshold denominator
thresholddoubleThreshold value
epochinteger (32)Epoch number
slotinteger (64)Slot number
update_datetimetimestampDate and time the record was last updated

II. Aggregation App

address_balance

A table for balance of address

  • Primary Id: {address, unit, slot}
Column NameData TypeDescription
addressstringBech32 encoded address
unitstringThe unit for the quantity (e.g., lovelace for ADA)
slotinteger (64)Slot number
quantitynumericNumeric representation of the asset amount
addr_fulltextFull address details in Cardano format
policystringPolicy ID (fingerprint) of the off-chain asset definition
asset_namestringOptional human-readable name of the asset
block_hashstringHash of the block
blockinteger (64)Block number
block_timeinteger (64)Block time
epochinteger (32)Epoch number
update_datetimetimestampDate and time the record was last updated

stake_address_balance

A table for balance of stake address

  • Primary Id: {address, slot}
Column NameData TypeDescription
addressstringBech32 encoded stake address
slotinteger (64)Slot number
quantitynumericNumeric representation of the lovelace
stake_credentialstringStake credential associated with the address
block_hashstringHash of the block
blockinteger (64)Block number
block_timeinteger (64)Unix timestamp representing the time the block was produced
epochinteger (32)Epoch number
update_datetimetimestampDate and time the record was last updated

address_tx_amount

A table for the change in the balance of an address at a specific transaction.

  • Primary Id: {address, unit, tx_hash}
Column NameData TypeDescription
addressstringBech32 encoded address
unitstringOptional unit for the quantity (e.g., lovelace for ADA)
tx_hashstringThe hash identifier of the transaction
slotinteger (64)Slot number
quantitynumericNumeric representation of the asset amount involved in the transaction
addr_fulltextFull address details in Cardano format
stake_addressstringBech32 encoded stake address associated with the transaction
blockinteger (64)Block number
block_timeinteger (64)Unix timestamp representing the time the block was produced
epochinteger (32)Epoch number when the transaction occurred

account_config

A table containing information about account config

  • Primary Id: config_id
Column NameData TypeDescription
config_idstringUnique identifier for the account configuration
statusstringCurrent status of the account configuration (BALANCE_SNAPSHOT)
slotinteger (64)Slot number
blockinteger (64)Block number
block_hashstringHash of the block

address_utxo

A table for transaction outputs (Used for account balance calculator).

  • Primary Id: {tx_hash, output_index,}
Column nameTypeDescription
tx_hashstringThe hash identifier of the transaction that contains this transaction output
output_indexsmallintThe index of this transaction output with the transaction
slotinteger (64)Slot number
block_hashstringHash of the block
epochinteger (32)Epoch number
lovelace_amountinteger (64)The output value (in Lovelace) of the transaction output
amountsjsonbObject containing the amount of each multi-asset coin in the UTXO.

tx_input

A table for tx inputs which reference outputs from previous transactions (Used for account balance calculator).

  • Primary Id: {tx_hash, output_index,}
Column nameTypeDescription
tx_hashstringThe hash identifier of the transaction
output_indexsmallintThe index within the transaction outputs
spent_at_slotinteger (64)Slot number in which the UTXO was spent
spent_at_blockinteger (64)Block number in which the UTXO was spent
spent_at_block_hashstringUnique identifier for the block containing the spending transaction
spent_block_timeinteger (64)Unix timestamp of the block containing the spending transaction
spent_epochinteger (32)Epoch number when the UTXO was spent
spent_tx_hashstringUnique identifier for the spending transaction

address

A table for information about address

  • Primary Id: id
Column nameTypeDescription
idbigserialUnique identifier for the address (auto-incrementing)
addressstringBech32 address in the Cardano blockchain.
addr_fulltextFull address information (might include more details)
payment_credentialstringBech32 payment credential for the address
stake_addressstringBech32 stake address associated with the address
stake_credentialstringBech32 stake credential associated with the address
update_datetimetimestampTimestamp of the last update to this record.