ar.io Logoar.io Documentation
Turbo SDKArNS Names

Pricing — quote the total

const price = await turbo.getArNSPriceForName({
  intent: 'Buy-Name',
  name: 'my-name',
  type: 'lease',
  years: 1,
});
price.wincTotal; // <- charge or display THIS
price.winc; // the name only, EXCLUDING the ANT spawn surcharge

Buying mints a fresh ANT, and Turbo fronts that account's Solana rent. A flat cost-recovery surcharge covers it, and in a real response the surcharge can exceed the name's own price — so reading winc under-quotes every purchase. wincTotal is added by the SDK precisely so the correct field is the obvious one. Never hardcode the surcharge: it is config-driven and derived from live rates.

How is this guide?