Skip to content

Commit

Permalink
Merge branch 'master' into mc/feat/add-endpoint-for-checking-user-acc…
Browse files Browse the repository at this point in the history
…ounts
  • Loading branch information
Torres-ssf authored Oct 10, 2024
2 parents 3bfad1a + d1b4505 commit 54f85e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-laws-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/account": patch
---

chore: optimize blockWithTransactions query
7 changes: 6 additions & 1 deletion packages/account/src/providers/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ query getBlockWithTransactions($blockId: BlockId, $blockHeight: U32) {
block(id: $blockId, height: $blockHeight) {
...blockFragment
transactions {
...transactionFragment
...transactionRawPayload
}
}
}
Expand All @@ -571,6 +571,11 @@ query getBlocks($after: String, $before: String, $first: Int, $last: Int) {
}
}

fragment transactionRawPayload on Transaction {
id
rawPayload
}

query getCoin($coinId: UtxoId!) {
coin(utxoId: $coinId) {
...coinFragment
Expand Down

0 comments on commit 54f85e5

Please # to comment.