Skip to content

upSubstateValue

upSubstateValue(response): SubstateValue | null

Defined in: ootle/src/helpers/substate.ts:16

The decoded value of a fetched substate, or null if the indexer answered that the requested version is down (only possible for a request with include_proof that names the version).

The indexer serves the value CBOR-encoded (state.up.substate is base64); this decodes it.

IndexerGetSubstateResponse

SubstateValue | null

if the served value is not a valid SubstateValue encoding.