Celestia types
Common types
Blob types
- class celestia.types.blob.SubmitBlobResult(height, commitments)[source]
- Represents the result of submitting a blob to the Celestia network. 
- class celestia.types.blob.SubscriptionBlobResult(height, blobs)[source]
- Represents the result of a subscription to blobs in the Celestia network. 
- class celestia.types.blob.Proof(nodes, end, is_max_namespace_ignored=None, start=None)[source]
- Represents a Merkle proof used for verifying data inclusion in Celestia. 
- class celestia.types.blob.RowProofEntry(leaf_hash, aunts, total, index=None)[source]
- Represents an entry in a row proof, used for verifying inclusion in a specific row of a Merkle tree. - leaf_hash
- The hash of the leaf. - Type:
- Base64 
 
 
- class celestia.types.blob.RowProof(row_roots, proofs, end_row=None, start_row=None)[source]
- Represents a proof for a row in a Merkle tree. - proofs
- The proof entries for the row. - Type:
- tuple[RowProofEntry, …] 
 
 
Das types
Header types
- class celestia.types.header.ConsensusVersion(block, app)[source]
- Represents the version information for the consensus. 
- class celestia.types.header.BlockId(hash, parts)[source]
- Represents a block identifier, which includes a hash and parts. 
- class celestia.types.header.Header(version, chain_id, height, time, last_block_id, last_commit_hash, data_hash, validators_hash, next_validators_hash, consensus_hash, app_hash, last_results_hash, evidence_hash, proposer_address)[source]
- Represents the header information for the block. - version
- The consensus version. - Type:
 
 
- class celestia.types.header.PubKey(type, value)[source]
- Represents a public key used for validating a transaction. - value
- The base64 encoded public key. - Type:
- Base64 
 
 
- class celestia.types.header.Validator(address, pub_key, voting_power, proposer_priority)[source]
- Represents a validator in the consensus system. 
- class celestia.types.header.ValidatorSet(validators, proposer)[source]
- Represents a set of validators and the proposer. 
- class celestia.types.header.Signature(block_id_flag, validator_address, timestamp, signature)[source]
- Represents a signature for a commit block. - signature
- The base64 encoded signature. - Type:
- Base64 
 
 
- class celestia.types.header.Commit(height, round, block_id, signatures)[source]
- Represents a commit for a block, including signatures. 
- class celestia.types.header.Dah(row_roots, column_roots)[source]
- Represents the data availability header. 
- class celestia.types.header.ExtendedHeader(header, validator_set, dah, commit)[source]
- Represents an extended header containing header, validator set, commit, and DAH. - validator_set
- The validator set. - Type:
 
 
P2P types
- class celestia.types.p2p.ResourceManagerStat(System, Transient, Services, Protocols, Peers)[source]
- Represents the statistics of a resource manager, including system, transient, services, protocols, and peers. 
- class celestia.types.p2p.BandwidthStats(TotalIn, TotalOut, RateIn, RateOut)[source]
- Represents the statistics related to bandwidth, including total inbound/outbound traffic and rates for both directions. 
- class celestia.types.p2p.AddrInfo(ID, Addrs)[source]
- Represents the address information with an identifier and associated addresses. 
State types
- class celestia.types.state.Balance(amount, denom)[source]
- Represents the balance of a particular denomination. 
- class celestia.types.state.TXResponse(height, txhash, logs, events)[source]
- Represents the response for a transaction. 
- class celestia.types.state.Delegation(delegator_address, validator_address, shares)[source]
- Represents a delegation of tokens to a validator. - The amount of shares in the delegation. - Type:
 
 
- class celestia.types.state.DelegationResponse(delegation, balance)[source]
- Represents the response for a delegation query. - delegation
- The delegation details. - Type:
 
 
- class celestia.types.state.QueryDelegationResponse(delegation_response)[source]
- Represents the response for a delegation query. - delegation_response
- The delegation response details. - Type:
 
 
- class celestia.types.state.RedelegationEntry(creation_height, completion_time, initial_balance, shares_dst)[source]
- Represents a redelegation entry. - The amount of shares transferred to the destination validator. - Type:
 
 
- class celestia.types.state.Redelegation(delegator_address, validator_src_address, validator_dst_address, entries)[source]
- Represents a redelegation of tokens from one validator to another. - entries
- A list of redelegation entries. - Type:
 
 
- class celestia.types.state.RedelegationResponseEntry(redelegation_entry, balance)[source]
- Represents a redelegation response entry. - redelegation_entry
- The redelegation entry details. - Type:
 
 
- class celestia.types.state.RedelegationResponse(redelegation, entries)[source]
- Represents the response for a redelegation query. - redelegation
- The redelegation details. - Type:
 
 - entries
- A list of redelegation response entries. - Type:
 
 
- class celestia.types.state.Pagination(next_key=None, total=None)[source]
- Represents pagination information. 
- class celestia.types.state.QueryRedelegationResponse(redelegation_responses, pagination=None)[source]
- Represents the response for a query to retrieve redelegations. - redelegation_responses
- A list of redelegation responses. - Type:
 
 - pagination
- Pagination information for the query results. - Type:
 
 
- class celestia.types.state.UnbondEntry(creation_height, completion_time, initial_balance, balance)[source]
- Represents an unbonding entry for a validator. 
- class celestia.types.state.Unbond(delegator_address, validator_address, entries)[source]
- Represents an unbonding of tokens from a validator. - entries
- A list of unbonding entries. - Type:
- tuple[UnbondEntry, …] 
 
 
- class celestia.types.state.QueryUnbondingDelegationResponse(unbond)[source]
- Represents the response for a query to retrieve unbonding delegations.