I built one smart contract using ink!. I can make the contract's wasm and metadata files. Now, I need to create go bindings of my smart contract to find contract types and functions info in golang code. Do we have any command or script for that?

  • You mean auto-generated bindings for your contract? Or a library to create them manually? Jan 23 at 15:04
  • Yes, auto generated bindings Jan 24 at 8:55
  • There are currently no automatic contract bindings generators. Lets keep it unanswered, maybe there will be at one point. Jan 26 at 12:43

1 Answer 1


AFAIK there is currently no way to auto-generate wrappers in Go.

A possible avenue to explore is to use https://github.com/727-Ventures/typechain-polkadot for generating TypeScript wrappers and then transpile them to Go code. I could imagine that a TypeScript2Golang exists somewhere.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.