Use Switchboard on-demand feeds on Aptos:
crank/update feeds client-side (pull model)
consume verified results in Move
enforce freshness/deviation policies in app logic
OperatorPolicy exists (Aptos network, signer custody, RPC allowlist).
OperatorPolicy
network (mainnet/testnet)
RPC endpoint
crossbarUrl (default: https://crossbar.switchboard.xyz)
crossbarUrl
https://crossbar.switchboard.xyz
aggregator/feed identifiers (addresses/object IDs)
safety policy (staleness/deviation/min responses) only if risk-sensitive
Pull-based: client must crank/update feeds to keep data fresh.
Ensure update action is executed before reading within the same flow (where applicable).
Off-chain:
fetch/update payload(s) for the feed/aggregator
submit transaction to run the update action (or include it in the same entry call if supported)
On-chain:
read current result + timestamp
enforce staleness and deviation vs last stored value
Produce an AptosFeedIntegrationPlan including:
AptosFeedIntegrationPlan
identifiers and network alignment checks
crank strategy (if requested)
Move consumption point and validation policy (if requested)
https://docs.switchboard.xyz/docs-by-chain/aptos
https://docs.switchboard.xyz/tooling/crossbar
Last updated 11 days ago