Approvals
Table of contents
Constructors
Methods
Constructors
constructor
• new Approvals()
Methods
fetchApprovals
▸ Static
fetchApprovals(__namedParameters
): CancelablePromise
<ApprovalOutputDTO
>
throws
ApiError
Parameters
Name | Type | Description |
---|---|---|
__namedParameters | Object | - |
__namedParameters.allowanceTarget | string | Address whose spending allowance is to be checked |
__namedParameters.chainId | ChainId | ID of chain, e.g Ethereum Mainnet = 1 |
__namedParameters.owner | string | Wallet address of token holder |
__namedParameters.tokenAddress | string | Contract address of token |
Returns
CancelablePromise
<ApprovalOutputDTO
>
ApprovalOutputDTO Gives approval values of given tokens for a given owner & chainId
Defined in
socket-v2-sdk/src/client/services/Approvals.ts:14
fetchApprovalsCalldata
▸ Static
fetchApprovalsCalldata(__namedParameters
): CancelablePromise
<ApprovalTxOutputDTO
>
throws
ApiError
Parameters
Name | Type | Description |
---|---|---|
__namedParameters | Object | - |
__namedParameters.allowanceTarget | string | Address whose spending allowance is to be checked |
__namedParameters.amount | string | Amount of tokens to approve, e.g 10 USDC (6 decimals) |
__namedParameters.chainId | ChainId | ID of chain, e.g Ethereum Mainnet = 1 |
__namedParameters.owner | string | Wallet address of token holder |
__namedParameters.tokenAddress | string | Contract address of token |
Returns
CancelablePromise
<ApprovalTxOutputDTO
>
ApprovalTxOutputDTO Return the Approval Tx Data for the given params.