getTransactionByBlock method
Implementation
Future<RosettaTransaction> getTransactionByBlock(int blockIndex) async {
var response = await blockByIndex(blockIndex);
var block = response.block;
if (block != null) {
return RosettaTransaction(block.transactions[0], blockIndex);
} else {
throw TransactionError("Block is not found $blockIndex", 500);
}
}