Skip to content

Get a state proof that covers a given round

GET
/v2/stateproofs/{round}
round
required
integer

A round number.

StateProofResponse wraps the StateProof type in a response.

Represents a state proof and its corresponding message

object
Message
required

Represents the message that the state proofs are attesting to.

object
BlockHeadersCommitment
required

The vector commitment root on all light block headers within a state proof interval.

string format: byte
/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
FirstAttestedRound
required

The first round the message attests to.

integer
LastAttestedRound
required

The last round the message attests to.

integer
LnProvenWeight
required

An integer value representing the natural log of the proven weight with 16 bits of precision. This value would be used to verify the next state proof.

integer format: uint64
VotersCommitment
required

The vector commitment root of the top N accounts to sign the next StateProof.

string format: byte
/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
StateProof
required

The encoded StateProof for the message.

string format: byte
/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/

Invalid API Token

An error response with optional data field.

object
data
object
message
required
string

Could not find a state proof that covers a given round

An error response with optional data field.

object
data
object
message
required
string

Timed out on request

An error response with optional data field.

object
data
object
message
required
string

Internal Error

An error response with optional data field.

object
data
object
message
required
string

Service Temporarily Unavailable

An error response with optional data field.

object
data
object
message
required
string

Unknown Error