Getting Prices
POST price estimates
POST price estimatesGet Inscription Price (in satoshis)
const discounts = []; // array of discounts applied to the order
// set at 10% at the moment but can be changed
const chainFeeRate = 0.1;
// the parameters that are discountable
// those are the values AFTER the discount
const {
baseFee, // base fee charged by us, per item
rareSatsFee, // fee for rare sats, per item
collectionServiceFee, // optional fee for collections, per item
} = dicountParamters;
// the other components of the pricing, which are not discountable
const {
chainFee, // chain fee in sats for the whole order
count, // items count
postage, // the postage per item
price, // the price per item for a collection or launchpad
additionalFee = 0, // zero by default unless specified, applies PER item,
sizeFee, // normally 10% of chain fee but does not apply for direct orders
} = basePricing;
// the total additional fee that we will charge
const additionalFeeCharged = additionalFee * count;
// service fee component calculation
const serviceFee = (baseFee + rareSatsFee + collectionServiceFee + postage + price) * count + additionalFeeCharged + sizeFee;
// final amount, this is what the user has to pay!
const amount = serviceFee + chainFee;
// this is returned by the endpoint
const finalPricing = {
...basePricing,
...discountParameters,
additionalFeeCharged,
discounts,
amount,
serviceFee,
};Body Parameters
Name
Type
Description
Non Standard Transaction Fees
Last updated

