Skip to content

Commit d197897

Browse files
committed
feat: add transactions list and details
1 parent 1d10164 commit d197897

File tree

6 files changed

+1126
-1
lines changed

6 files changed

+1126
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
query TransactionDetails($hash: String) {
2+
transaction(where: {hash: {_eq: $hash}}, limit: 1) {
3+
hash: hash
4+
height: height
5+
block: block {
6+
timestamp: timestamp
7+
}
8+
gasUsed: gas_used
9+
gasWanted: gas_wanted
10+
success: success
11+
memo: memo
12+
rawLog: raw_log
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
query Transactions($limit: Int = 7, $offset: Int = 0) {
2+
transactions: transaction(limit: $limit, offset: $offset, order_by: {height: desc}) {
3+
height
4+
hash
5+
success
6+
block {
7+
timestamp
8+
}
9+
tx_type
10+
}
11+
}

0 commit comments

Comments
 (0)