ar.io Logoar.io Documentation
Turbo SDKArNS Names (paid with Turbo Credits)

Pricing a name

getArNSPriceForName(params) returns the cost in both Turbo Credits (winc) and mARIO. Params are validated client-side per intent (a ProvidedInputError is thrown for missing/invalid fields before any request is sent).

const { winc, mARIO } = await turbo.getArNSPriceForName({
  intent: 'Buy-Name',
  name: 'my-name',
  type: 'lease', // 'lease' | 'permabuy'
  years: 1, // required for leases
  processId: 'ant-process-id', // the ANT the name resolves to
});

How is this guide?