I'm trying to migrate a project away from using Truffle, and in the migration script, it currently uses truffle's link() function. Is there some sort of equivalent library, perhaps implemented by web3 or ethers.js that handles this functionality?

1 Answer 1


You can use solc's linker https://www.npmjs.com/package/solc#linking-bytecode

It should give you the tools for linking contracts.

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.