Sui.

Post

Share your knowledge.

Tawhid.
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

1
CarlkawIy.
Dec 14 2024, 23:50

It'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.

367Posts503Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

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

Reward CampaignJuly