Index
Synapse Core - Payments Contract Operations
Example
Section titled “Example”import * as Pay from '@filoz/synapse-core/pay'Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| AccountInfoOptions | - |
| AccountInfoResult | - |
| DepositAndApproveOptions | - |
| DepositOptions | - |
| OperatorApprovalsOptions | - |
| OperatorApprovalsResult | - |
| SetOperatorApprovalOptions | - |
| WithdrawOptions | - |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| accountInfo | Get the account info from the payments contract. |
| deposit | Deposit funds to the payments contract. |
| depositAndApprove | Deposit funds to the payments contract and approve an operator. |
| operatorApprovals | Get the operator approvals from the payments contract. |
| setOperatorApproval | Set the operator approval for the payments contract. |
| withdraw | Withdraw funds from the payments contract. |