If you're thinking of invoking a smart contract from Rust then you're likely doing one of two things:
- writing the contract (and interest in unit testing)
- invoking the contract from a Rust application outside of the NEAR Platform
- let us know if we missed something!
Unit testing smart contracts
near-bindgen supports unit testing smart contracts out of the box
several examples are included in the
In 2019 we held a workshop called MapReduce with Asynchronous Smart Contracts that included 3 exercises of increasing difficulty and a challenge. Solutions to the 3 exercises include unit tests.
Invoking smart contracts from a Rust application outside of NEAR
We currently don't have Rust language bindings for our RPC interface. You would need to use our JSON RPC interface directly to either
query the network for a
view method or send a
FunctionCall transaction to the network for a