Is it possible to have a smart contract which uses computational libraries from python? If so, how? Is there a size restriction on this?

I wish to run an algorithm inside a contract.

1 Answer 1


This is not possible, a smart contract can't use a python library or any library not supported by the compiler. you would only use the libraries written in the languages supported by the EVM like serpent or solidity.

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.