Json Rpc Provider
A provider for interacting with Starknet using JSON-RPC. You should reuse it in your application to share the httpService or provide it with your own httpService.
Parameters
url of the service providing a rpc interface
service used for making http requests
Functions
Calls a contract deployed on Starknet.
Declare contract using version 1 transaction.
Declare contract using version 2 transaction.
Declare contract using version 3 transaction.
Deploy an account contract using version 1 transaction.
Deploy an account contract using version 3 transaction.
Get the hash and number of the block.
Get the block number.
Get the block transaction count.
Get a block with transaction receipts.
Get a block with transaction hashes.
Get a block with transactions.
Get the chain id.
Get the contract class definition.
Get the contract class definition.
Get the contract class hash.
Estimate a fee.
Estimate a message fee.
Get events
Get a nonce.
Get the version of the spec.
Get block state information.
Get a value of storage var.
Get the block synchronization status.
Get a transaction.
Get transaction by block id and index.
Get transaction receipt
Get transaction status
Invoke a function using version 1 transaction.
Invoke a function using version 3 transaction.
Simulate executing a list of transactions