# useERC20Balance

```ts
function useERC20Balance(props): UseQueryResult<ERC20BalanceResult, Error>;
```

Defined in: [synapse-react/src/erc20.ts:28](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-react/src/erc20.ts#L28)

Get the balance and allowance of the ERC20 token.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props` | `UseERC20BalanceProps` | The props to use. |

## Returns

`UseQueryResult`\<[`ERC20BalanceResult`](/reference/filoz/synapse-core/erc20/type-aliases/erc20balanceresult/), [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error)\>

The balance and allowance of the ERC20 token.