Estimate
Okto is a platform that allows you to integrate web3 functionality into your app without building things from scratch.
Method Overview
Methods | Description |
---|---|
async estimate | Estimate a user operation |
Estimate
async estimate(OktoClient, recipientWalletAddress, networkId, tokenAddress, amount)
estimates a user operation.
Parameters
Parameter | Type | Description |
---|---|---|
oktoClient | OktoClient | Okto client |
recipientWalletAddress | string | The recipient wallet address |
networkId | number | The network id of the user operation |
tokenAddress | string | The token address of the user operation |
amount | string | The amount of the user operation |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<EstimateOrderPayload> | Returns the estimate order payload |
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.