I want to integrate a third party library into my ink! smart contract and I am not sure if this is possible. I did notice that ink! has something called Chain Extensions which can allow a smart contract to interact with the runtime and I am wondering if there is a way to add the third party library to the runtime as a pallet and then interact with it using the smart contract. Is this feasible or are there any other ways I can go about doing something like this?

Edit: I want to mention that the library I want to integrate supports no-std.

  • 2
    I advise you to use openbrush.io. amazing framework for smart contract development with ink!
    – rust.dev
    Commented Dec 25, 2022 at 17:30

1 Answer 1


You can treat ink! contract as any other rust application - you can add dependencies to your Cargo.toml file and use these dependencies across your project, however, these libraries need to enable usage of no-standard Rust library.

Your Answer

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

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