JsonRpcProvider class Null safety

Inheritance

Constructors

JsonRpcProvider(String? _url)

Properties

hashCode int
The hash code for this object.
read-only, inherited
printErrors bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

call(TransactionRequest transaction, {BlockTag? blockTag}) Future<String>
override
defaultUrl() String
detectNetwork() → dynamic
estimateGas(TransactionRequest transaction) Future<BigInt>
Execution
override
getBalance(String address, {BlockTag? blockTag}) Future<BigInt>
Gets the balance of the account with the specified address.
override
getBlock(BlockTag blockTag) Future<Block>
Queries
override
getBlockByHash({BlockTag? blockTag, bool? includeTransactions}) Future<Block>
getBlockByNumber({BlockTag? blockTag, bool? includeTransactions}) Future<Block>
Signs the given transaction using the keys supplied in the cred object to upload it to the client so that it can be executed.
getBlockNumber() Future<int>
Returns the number of the most recent block on the chain.
getBlockWithTransactions(BlockTag blockTag) Future<BlockWithTransactions>
override
getCode(String address, {BlockTag? blockTag}) Future<String>
Gets the code of a contract at the specified address
override
getGasPrice() Future<BigInt>
Returns the amount of Ether typically needed to pay for one unit of gas.
getLogs(Filter filter) Future<List<Log>>
Bloom-filter Queries
override
getSigner() JsonRpcSigner
getStorageAt(String address, BigInt position, {BlockTag? blockTag}) Future<String>
Gets an element from the storage of the contract with the specified address at the specified position. See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getstorageat for more details. This function allows specifying a custom block mined in the past to get historical data. By default, BlockTag.latest will be used.
override
getTransaction(String transactionHash) Future<TransactionResponse>
Returns the information about a transaction requested by transaction hash transactionHash.
override
getTransactionCount(String address, {BlockTag? blockTag}) Future<int>
override
getTransactionReceipt(String hash) Future<TransactionReceipt>
Returns an receipt of a transaction based on its hash.
override
getUncheckedSigner({String? address, int? index}) JsonRpcSigner
listAccounts() Future<List<String>>
lookupAddress(String address) Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resolveName(String name) Future<String?>
ENS
override
send<T>(String function, {List? params}) Future<T>
sendTransaction(TransactionRequest transaction) Future<TransactionResponse>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited