The order will start inscribing once the "payAddress" receives the "amount". For example, if an order requires 3000 satoshis, you have to send 3000 satoshis to payAddress. After that, the inscription will be inscribed.
How is the open-api order charged?
We charge a base service fee of 1999 for the first 25 inscriptions, along with an additional network service fee of 4.99%. We round down the final cost.
Are the orders on the open-api and the UniSat website interoperable?
No.
Open API and UniSat website inscribing service do not share data. This ensures the stability of the Open API interface and prevents it from being affected by frequent changes to website inscribing service. For similar reasons, the orders on open-api do not enjoy discounts from the OG card or .unisat domain.
How many files can I submit for each order?
An order supports a maximum of 2000 files, with each file having a maximum size of 390 KB
How to estimate fee before create an order?
constaddress=''; // the receiver addressconstinscriptionBalance=546; // the balance in each inscriptionconstfileCount=1000; // the fileCountconstfileSize=1000; // the total size of all filesconstcontentTypeSize=100; // the size of contentTypeconstfeeRate=10; // the feeRateconstfeeFileSize=100; // the total size of first 25 filesconstfeeFileCount=25// do not change thisconstdevFee=1000; // the fee for developerconstbalance= inscriptionBalance * fileCount;let addrSize =25+1; // p2pkhif(address.indexOf('bc1q')==0||address.indexOf('tb1q')==0){ addrSize =22+1;}elseif(address.indexOf('bc1p')==0||address.indexOf('tb1p')==0){ addrSize =34+1;}elseif(address.indexOf('2')==0||address.indexOf('3')==0){ addrSize =23+1;}constbaseSize=88;let networkSats =Math.ceil(((fileSize+contentTypeSize) /4+ ( baseSize+8+addrSize+8+23)) * feeRate);if(fileCount>1){ networkSats =Math.ceil(((fileSize+contentTypeSize) /4+ (baseSize+8+addrSize+(35+8)*(fileCount-1)+8+23+(baseSize+8+addrSize+0.5)*(fileCount-1) )) * feeRate);}let networkSatsByFeeCount =Math.ceil(((feeFileSize+contentTypeSize) /4+ ( baseSize+8+addrSize+8+23)) * feeRate);if(fileCount>1){ networkSatsByFeeCount =Math.ceil(((( feeFileSize)+contentTypeSize*(feeFileCount/fileCount)) /4+ (baseSize+8+addrSize+(35+8)*(fileCount-1)+8+23+(baseSize+8+addrSize+0.5)*Math.min(fileCount-1,feeFileCount-1) )) * feeRate);}constbaseFee=1999*Math.min(fileCount, feeFileCount); // 1999 base fee for top 25 filesconstfloatFee=Math.ceil(networkSatsByFeeCount *0.0499); // 4.99% extra miner fee for top 25 transationsconstserviceFee=Math.floor(baseFee + floatFee);consttotal= balance + networkSats + serviceFee; consttruncatedTotal=Math.floor((total) /1000) *1000; // truncateconstamount= truncatedTotal + devFee; // add devFee at the endconsole.log("The final amount need to pay: ",amount)