Other Network Providers
The CashScript SDK needs to connect to the BCH network to perform certain operations, like retrieving balances and sending transactions.
MockNetworkProvider
The upstream TypeScript SDK provides a MockNetworkProvider which evaluates transactions locally without interacting
with a BCH network. This is ideal for fast automated testing and local debugging.
CashScript-Py does not yet provide a full mock network provider. For now:
use chipnet for integration tests
use
cashscript_py_support.utilsto reduce funding/cleanup boilerplate
See: Testing Setup
Other providers
CashScript-Py currently ships with:
ElectrumNetworkProvider(recommended)
If you want to connect to other infrastructure (RPC, hosted APIs, etc.), implement the NetworkProvider interface.
Contributions of additional providers are welcome once they include basic automated tests.