Skip to main content

getTotalPrice

Get the total price for a purchase (including fees)

Query Parameters
network number REQUIRED

The network the lock is on

amount number

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

address string

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

Responses
200

Successfully got price

Schema OPTIONAL
total number
subtotal number
gasCost number
unlockServiceFee number
creditCardProcessingFee number
isCreditCardPurchasable boolean