Skip to content

Commit

Permalink
feat: app balances
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored and cor committed Jun 7, 2024
1 parent 9a59c68 commit 1435b2a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/src/routes/balance/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script lang="ts">
import { createQuery } from '@tanstack/svelte-query'
import { evmBalancesQuery } from '$lib/queries/balance'
import { CHAINS } from '$lib/constants'
$: evmBalances = evmBalancesQuery({
address: '0x8478B37E983F520dBCB5d7D3aAD8276B82631aBd',
chainId: '11155111',
tokenSpecification: 'erc20',
})
$: data = $evmBalances?.data || []
</script>

<main>
<pre>{JSON.stringify(data, undefined, 2)}</pre>
</main>

0 comments on commit 1435b2a

Please sign in to comment.