some basic cleanup
This commit is contained in:
15
src/lib/components/Balance.svelte
Normal file
15
src/lib/components/Balance.svelte
Normal file
@ -0,0 +1,15 @@
|
||||
<script>
|
||||
import { fetchBalance } from '@wagmi/core';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let balance;
|
||||
|
||||
onMount(async () => {
|
||||
const getBalance = await fetchBalance({
|
||||
address: '0x06B6BE47c86cfcDF3f77c0e17e7aD8af750782aE'
|
||||
});
|
||||
balance = getBalance.formatted;
|
||||
});
|
||||
</script>
|
||||
|
||||
<span>{balance}</span>
|
Reference in New Issue
Block a user