TronHTTPRepository class
Methods
-
broadcastCastTransactionHex(String hex)
→ Future<JSON>
-
-
broadcastTransaction({required JSON json})
→ Future<JSON>
-
-
createTransaction({required String ownerAddress, required String toAddress, required Amount amount, bool visible = true})
→ Future<JSON>
-
-
estimateEnergy(TriggerSmartContract contract)
→ Future<int>
-
-
getAccount({required String address, bool visible = true})
→ Future<JSON>
-
-
getAccountInfo({required String address})
→ Future<JSON>
-
-
getAccountResource({required String address, bool visible = true})
→ Future<({int bandwidth, int energy})>
-
-
getAllTRC10Tokens()
→ Future<JSON>
-
-
getBalance({required String address})
→ Future<Amount>
-
-
getBlock()
→ Future<TronBlockInfo>
-
-
getBlockByNumber(int number)
→ Future<JSON>
-
-
getCall<T>(String url)
→ Future<T>
-
inherited
-
getTransactionById(String id)
→ Future<JSON>
-
-
getTRC10byID(String id)
→ Future<JSON>
-
-
getTRC20Balance({required String address, required ERC20Entity trc20})
→ Future<Amount>
-
-
getTRC20TransactionList({required String address, required String contractAddress, int limit = 200})
→ Future<JSON>
-
-
getTRXTransactionList({required String address, int limit = 200})
→ Future<JSON>
-
-
listNodes()
→ Future<JSON>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
postCall<T>(String url, {required JSON data})
→ Future<T>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
transferTRC20({required String address, required String contractAddress, required Amount amount})
→ Future<JSON>
-
-
triggerConstantContract({required String address, required String contractAddress, String? functionSelector, String? parameter, String? data, bool visible = true})
→ Future<JSON>
-
Trigger a constant contract (read-only, does not modify the blockchain)
-
triggerSmartContract({required String address, required String contractAddress, required String functionSelector, required String parameter, bool visible = true, int feeLimit = 1000000, int? call_value, int? call_token_value, String? token_id})
→ Future<JSON>
-
Trigger a smart contract (write, modifies the blockchain)
-
validateAddress(String address)
→ Future<JSON>
-