Move.

Post

Share your knowledge.

yhant3.
Jan 22, 2025
Discussion

How to retrieve bytecode from blockchain contracts?

I'm trying to get the bytecode from blockchain contracts. Any idea how I could achieve this?

  • Move CLI
  • Move Bug
2
1
Share
Comments
.

Answers

1
doodee.
Jan 22 2025, 23:59

You can use the following GraphQL query to fetch the bytecode:

query Func {
    object(address: "0x3") {
        asMovePackage {
          bcs
        }
    }
}
2
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