Skip to content

Test against Solidity smart contracts #1779

@pedrohba1

Description

@pedrohba1

Is there an existing issue for this?

  • I have searched the existing issues

Feature Test To Be Requested

I would like an example to test against smart contracts.
On my application, I have a smart contract that needs to be called to check some data in the contract. I need this data to reach my back-end application somehow.

Thing is, I could test the contract against a testnet, but it would take too long to respond. And it would depend on the testnet being live.

The best way to do it would be using something like what hardhat does, but I have no idea how it implements a "local" blockchain for testing and how I can replicate it on nestjs testing environment. If anyone have an idea, please suggest me. I might implement it. Because for my use case it is really necessary.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions