What Providers Do

Overview

Providers serve as the communication layer between your application and OP_NET nodes, abstracting the complexity of network interactions. They handle all RPC calls, manage connections, and expose a clean API for blockchain operations.

Provider Functionality

The following table summarizes the functionality provided by OP_NET providers:

Functionality Description
RPC Communication Send and receive JSON-RPC requests.
Block Operations Fetch blocks by number, hash, or checksum.
Transaction Handling Get transactions, receipts, broadcast new transactions.
Contract Calls Execute contract simulations and read storage.
UTXO Management Fetch and track unspent transaction outputs.
Balance Queries Get Bitcoin balances for addresses.
Epoch Operations Access epoch mining data and submit solutions.
Public Key Lookups Convert addresses to unified formats.