I have an anchor program (and typescript client) that I want to test against the Solend Program. Is it possible to load the Solend program locally within "anchor test" without explicitly cloning the repo? eg by just specifying the github url in the Anchor.toml?

1 Answer 1


yes, see this : https://www.anchor-lang.com/docs/manifest#test-validator essentially you need to configure your anchor toml file, where you set a url which is the mainnet api and the solend program id anchor(version >=0.23) will automatically clone the data account if the account is owned by a bpf upgradeable loader not only programs you can also add specific program accounts you want to clone, such that when you start your test these programs/accounts will be loaded from genesis


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.