Move.

Post

Share your knowledge.

andreweth..
Mar 30, 2025
Expert Q&A

How to access checkpoints in Sui's Move contracts?

I was exploring how to get checkpoints in Sui, and found some documentation for API operations that clients can use. However, I'm curious about accessing checkpoints within a Move contract. Do I need an oracle for this, or is there a way to handle it directly in the contract?

  • Move CLI
1
2
Share
Comments
.

Answers

2
doodee.
Mar 30 2025, 04:06

Checkpoints are primarily meant for network synchronization and consensus, functioning outside the on-chain environment where smart contracts run. They rely on validator consensus and signatures for verification. In Move, smart contracts operate within the Sui network's state, and they don't interact directly with off-chain data like checkpoints.

0
Best Answer
Comments
.
cod.
cod95
Apr 9 2025, 03:31

Move contracts can only access the epoch, which is included in the TxContext. For feeding off-chain data like checkpoints to your contract, you'd typically use an oracle. This involves setting up mechanisms to bring external data into your blockchain environment.

0
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info