# @filoz/synapse-react

Synapse React - Main Entry Point

## Example

```ts
import * as react from '@filoz/synapse-react'
```

## Interfaces

| Interface | Description |
| ------ | ------ |
| [DataSetWithPieces](/reference/filoz/synapse-react/interfaces/datasetwithpieces/) | Data set information returned from Warm Storage contract |
| [UseAccountInfoProps](/reference/filoz/synapse-react/interfaces/useaccountinfoprops/) | - |
| [UseApproveAllowanceProps](/reference/filoz/synapse-react/interfaces/useapproveallowanceprops/) | - |
| [UseCreateDataSetProps](/reference/filoz/synapse-react/interfaces/usecreatedatasetprops/) | - |
| [UseCreateDataSetVariables](/reference/filoz/synapse-react/interfaces/usecreatedatasetvariables/) | - |
| [UseDataSetsProps](/reference/filoz/synapse-react/interfaces/usedatasetsprops/) | - |
| [UseDeletePieceProps](/reference/filoz/synapse-react/interfaces/usedeletepieceprops/) | - |
| [UseDeletePieceVariables](/reference/filoz/synapse-react/interfaces/usedeletepiecevariables/) | - |
| [UseDepositAndApproveProps](/reference/filoz/synapse-react/interfaces/usedepositandapproveprops/) | - |
| [UseDepositProps](/reference/filoz/synapse-react/interfaces/usedepositprops/) | - |
| [UseERC20BalanceProps](/reference/filoz/synapse-react/interfaces/useerc20balanceprops/) | - |
| [UseFundWalletProps](/reference/filoz/synapse-react/interfaces/usefundwalletprops/) | - |
| [UseOperatorApprovalsProps](/reference/filoz/synapse-react/interfaces/useoperatorapprovalsprops/) | - |
| [UseProvidersProps](/reference/filoz/synapse-react/interfaces/useprovidersprops/) | - |
| [UseServicePriceProps](/reference/filoz/synapse-react/interfaces/useservicepriceprops/) | The props for the useServicePrice hook. |
| [UseUploadProps](/reference/filoz/synapse-react/interfaces/useuploadprops/) | - |
| [UseUploadVariables](/reference/filoz/synapse-react/interfaces/useuploadvariables/) | - |
| [UseWatchUsdfcProps](/reference/filoz/synapse-react/interfaces/usewatchusdfcprops/) | - |

## Type Aliases

| Type Alias | Description |
| ------ | ------ |
| [ApproveOperatorProps](/reference/filoz/synapse-react/type-aliases/approveoperatorprops/) | - |
| [RevokeOperatorProps](/reference/filoz/synapse-react/type-aliases/revokeoperatorprops/) | - |
| [UseApproveAllowanceVariables](/reference/filoz/synapse-react/type-aliases/useapproveallowancevariables/) | - |
| [UseCreateDataSetResult](/reference/filoz/synapse-react/type-aliases/usecreatedatasetresult/) | - |
| [UseDataSetsResult](/reference/filoz/synapse-react/type-aliases/usedatasetsresult/) | - |
| [UseDepositAndApproveVariables](/reference/filoz/synapse-react/type-aliases/usedepositandapprovevariables/) | - |
| [UseDepositVariables](/reference/filoz/synapse-react/type-aliases/usedepositvariables/) | - |
| [UseProvidersResult](/reference/filoz/synapse-react/type-aliases/useprovidersresult/) | - |
| [UseServicePriceResult](/reference/filoz/synapse-react/type-aliases/useservicepriceresult/) | The result for the useServicePrice hook. |
| [UseWithdrawProps](/reference/filoz/synapse-react/type-aliases/usewithdrawprops/) | - |
| [UseWithdrawVariables](/reference/filoz/synapse-react/type-aliases/usewithdrawvariables/) | - |

## Functions

| Function | Description |
| ------ | ------ |
| [useAccountInfo](/reference/filoz/synapse-react/functions/useaccountinfo/) | Get the account info from the payments contract. |
| [useAddUsdfc](/reference/filoz/synapse-react/functions/useaddusdfc/) | Add the USDFC token to the wallet. |
| [useApproveAllowance](/reference/filoz/synapse-react/functions/useapproveallowance/) | Approve the allowance of the ERC20 token to the payments contract. |
| [useApproveOperator](/reference/filoz/synapse-react/functions/useapproveoperator/) | Approve a service contract to act as an operator for payment rails. |
| [useCreateDataSet](/reference/filoz/synapse-react/functions/usecreatedataset/) | - |
| [useDataSets](/reference/filoz/synapse-react/functions/usedatasets/) | - |
| [useDeletePiece](/reference/filoz/synapse-react/functions/usedeletepiece/) | - |
| [useDeposit](/reference/filoz/synapse-react/functions/usedeposit/) | Deposit ERC20 tokens into the payments contract. |
| [useDepositAndApprove](/reference/filoz/synapse-react/functions/usedepositandapprove/) | Deposit and approve ERC20 tokens into the payments contract. |
| [useERC20Balance](/reference/filoz/synapse-react/functions/useerc20balance/) | Get the balance and allowance of the ERC20 token. |
| [useFundWallet](/reference/filoz/synapse-react/functions/usefundwallet/) | Fund the wallet with USDFC and FIL. |
| [useOperatorApprovals](/reference/filoz/synapse-react/functions/useoperatorapprovals/) | Get the operator approvals from the payments contract. |
| [useProviders](/reference/filoz/synapse-react/functions/useproviders/) | - |
| [useRevokeOperator](/reference/filoz/synapse-react/functions/userevokeoperator/) | Revoke the operator to deposit and withdraw ERC20 tokens from the payments contract. |
| [useServicePrice](/reference/filoz/synapse-react/functions/useserviceprice/) | Get the service price for the warm storage. |
| [useUpload](/reference/filoz/synapse-react/functions/useupload/) | - |
| [useWithdraw](/reference/filoz/synapse-react/functions/usewithdraw/) | Withdraw ERC20 tokens from the payments contract. |