Post
Share your knowledge.
Tawhid304
Dec 14, 2024
Expert Q&A
Is it possible to retrieve an object directly by its ID within a smart contract on Sui?
Is it possible to retrieve an object directly by its ID within a smart contract on Sui?
- Sui
- SDKs and Developer Tools
1
1
Share
Comments
Answers
1CarlkawIy259
Dec 14 2024, 23:50It's not possible to retrieve an object directly by its ID within a smart contract on Sui. Smart contracts on Sui do not have direct access to global storage like in Solidity/EVM. You can fetch an object from an external system (client side) and pass this object as an argument into a smart contract function.
1
Best Answer
Comments
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
610Posts1335Answers

Reward CampaignJuly
- ... SUIBigSneh+1396
- ... SUISuiLover+1333
- ... SUI0xduckmove+1207
- ... SUIThorfin+1202
- ... SUIOwen+970
- ... SUIharry phan+847
- ... SUItheking+742
Bounty Posts
- Why does BCS require exact field order for deserialization when Move structs have named fields?53
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution43
- Sui Transaction Failing: Objects Reserved for Another Transaction25
- How do ability constraints interact with dynamic fields in heterogeneous collections?05