@filoz/synapse-react
Synapse React - Main Entry Point
Example
Section titled “Example”import * as react from '@filoz/synapse-react'Interfaces
Section titled “Interfaces”Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| ApproveOperatorProps | - |
| OperatorApprovalsResult | - |
| PieceWithMetadata | - |
| RevokeOperatorProps | - |
| UseApproveAllowanceVariables | - |
| UseCreateDataSetResult | - |
| UseDataSetsResult | - |
| UseDepositAndApproveVariables | - |
| UseDepositVariables | - |
| UseProvidersResult | - |
| UseServicePriceResult | The result for the useServicePrice hook. |
| UseWithdrawProps | - |
| UseWithdrawVariables | - |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| useAccountInfo | Get the account info from the payments contract. |
| useAddUsdfc | Add the USDFC token to the wallet. |
| useApproveAllowance | Approve the allowance of the ERC20 token to the payments contract. |
| useApproveOperator | Approve a service contract to act as an operator for payment rails. |
| useCreateDataSet | - |
| useDataSets | - |
| useDeletePiece | - |
| useDeposit | Deposit ERC20 tokens into the payments contract. |
| useDepositAndApprove | Deposit and approve ERC20 tokens into the payments contract. |
| useERC20Balance | Get the balance and allowance of the ERC20 token. |
| useFundWallet | Fund the wallet with USDFC and FIL. |
| useOperatorApprovals | Get the operator approvals from the payments contract. |
| useProviders | - |
| useRevokeOperator | Revoke the operator to deposit and withdraw ERC20 tokens from the payments contract. |
| useServicePrice | Get the service price for the warm storage. |
| useUpload | - |
| useWithdraw | Withdraw ERC20 tokens from the payments contract. |