getTransactionByID()

Searches a Transaction by its ID. The transaction will be searched initially between the pending transactions and then in the blockchain.

Method Signature

Future<dynamic> getTransactionByID(String blockchain, String TxID, int start, int end);

Parameters

Name
Type
Description

blockchain

String

Blockchain address in hex

TxID

String

TxID

start

int

Starting block number

end

int

Ending block number

Example

import 'package:circular_api/circular_api.dart';

void main() async {
    final circular = CircularAPI();
    final blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
    final TxID = "39af083def3e5644632b8af7e3b1fd15af38cb4b5204d26fbf2e6a66d24216a7";
  
    final wallet = await circular.getTransactionByID(blockchain, TxID, 0, 1);
}

Result

The result will be an object of type Map<String, dynamic>

If no transaction is found:

Last updated