Estimate

Okto is a platform that allows you to integrate web3 functionality into your app without building things from scratch.

Method Overview

MethodsDescription
async estimateEstimate a user operation

Estimate

async estimate(OktoClient, recipientWalletAddress, networkId, tokenAddress, amount) estimates a user operation.

Parameters

ParameterTypeDescription
oktoClientOktoClientOkto client
recipientWalletAddressstringThe recipient wallet address
networkIdnumberThe network id of the user operation
tokenAddressstringThe token address of the user operation
amountstringThe amount of the user operation

Response

Success Response

Field NameTypeDescription
resultPromise<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.

On this page