Becoming a Subscriber
Consuming data from Stork.
Who Can Become a Subscriber?
Using Data Off-Chain
{
"data": [
"<plain-text asset id>": {
"timestamp": <unix timestamp>,
"asset_id": "<plain-text asset id>,
"signature_type": "<signature type - evm | stark>",
"trigger": "<trigger>",
"price": "<price multiplied by 10^18>",
"stork_signed_price": {
"public_key": "<stork aggregator public key>",
"encoded_asset_id": "<keccak256 encoded asset id>",
"price": "<price multiplied by 10^18>",
"timestamped_signature": {
"signature": {
"r": "<r component of ECDSA secp256k1 signature>",
"s": "<r component of ECDSA secp256k1 signature>",
"v": "<s component of ECDSA secp256k1 signature"
},
"timestamp": <unix timestamp>,
"msg_hash": "keccak256 message hash"
},
"publisher_merkle_root": "<publisher merkle root",
"calculation_alg": {
"type": "<aggregation function name>",
"version": "<aggregation function version",
"checksum": "<checksum for aggregation function>"
}
},
"signed_prices": [
{
"publisher_key": "<publishers public key>",
"external_asset_id": "<plain-text asset id",
"signature_type": "<signature type - evm | stark>",
"price": "price multiplied by 10^18",
"timestamped_signature": {
"signature": {
"r": "<r component of ECDSA secp256k1 signature>",
"s": "<r component of ECDSA secp256k1 signature>",
"v": "<s component of ECDSA secp256k1 signature"
},
"timestamp": <unix timestamp>,
"msg_hash": "<keccak256 message hash>"
}
},
...
]
}
}
}Using Data On-Chain
Putting Data On-ChainAccessing Data On-ChainLast updated