Quote

Method Signature

quote(amount, token)

Parameters

Returns a JSON object literal with the below info:

Return Value
Description

receives

The amount of funds intended for withdrawal. This value represents the quantity of the specified token that the user

token

The token or asset earmarked for withdrawal. The token parameter identifies the specific cryptocurrency or digital asset that the user intends to convert. It ensures that the generated quote is aligned with the chosen token.

With the quote method, you enhance the user experience by offering clear insights into the expected outcomes of their withdrawal transactions. By giving users a preview of their post-withdrawal funds, you empower them to make well-informed decisions that align with their financial goals.

Return Value(s)

Returns a JSON object literal with the below info:

Return Value
Description

receives

The amount that the user will receive after fees.

estimated_fee

The estimated fee associated with the withdrawal.

amount

The original amount of funds requested for withdrawal.

asset

The asset or token that was withdrawn.

memo

Additional information or note about the withdrawal. This might include a disclaimer about possible variations in prices due to local service providers.

Last updated