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
1
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
        }
    }
}
1
Comments
.

Do you know the answer?

Please log in and share it.

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