Get the total price for a purchase (including fees)

get/v2/api/purchase/total

Query parameters

networknumber required

The network the lock is on

amountnumber

Amount of tokens you want to get the price for in USD.

addressstring

The erc20 address you want to get the price for. If nothing is passed, the API will return the native token price.

Response

Successfully got price

totalnumber required
subtotalnumber required
gasCostnumber required
unlockServiceFeenumber required
creditCardProcessingFeenumber required
isCreditCardPurchasableboolean required

Changes