v0
Reference for v0 REST APIs served by Espresso nodes and query services
API v0was the default API version from genesis until the proof-of-stake upgrade. Proof-of-stake is scheduled for April 15, 2025 on testnet and TBD on mainnet, after which v1 will be the default API version. v0will continue to be supported indefinitely, however certain endpoints will fail when querying for data originating after the proof-of-stake upgrade, and fields of certain types which were added in the proof-of-stake upgrade are not accessible via this API.
The differences between v0and the subsequent version v1are:
v0lacks new fields which were added to theLeaftype inv1. For leaves created before the proof-of-stake upgrade, the leaf structure without these fields is equivalent to the new structure. However, for leaves created after the proof-of-stake upgrade, it will be impossible to compute accurate commitments or verify consensus artifacts using thev0API.next_epoch_justify_qcnext_drb_resultwith_epoch
v0lacks new fields which were added to theQCtype inv1. For QCs created before the proof-of-stake upgrade, the QC structure without these fields is equivalent to the new structure. However, for QCs created after the proof-of-stake upgrade, it will be impossible to compute accurate commitments or verify consensus artifacts using thev0API.epoch
The types of VID artifacts (VID shares, VID common, and namespace proofs) are different in
v0andv1. For blocks created before the proof-of-stake upgrade, the VID types are equivalent, and any proofs using these types can still be verified using the information returned by thev0API. However, the new version of the Rust SDK will not be able to deserialize thev0types, and for blocks created after the proof-of-stake upgrade, thev0endpoints will return errors.v0lacks all APIs related to rewards statev0lacks theavailability/state-cert/:epochandcatchup/:height/leafchainAPIs which are necessary for running a consensus client after proof of stakev0lacks the convenience endpointnode/stake-tablefor fetching the latest stake table from a trusted server
Last updated

