getArNSRecord

getArNSRecord is a method on the ARIO class that retrieves the details of a specific ArNS record by its name. This includes lease information, type, process ID, and other metadata.

getArNSRecord does not require authentication.

Parameters

← Swipe to see more →
ParameterTypeDescriptionOptional
namestringThe ArNS name to retrieve details forfalse
← Swipe to see more →

Examples

getArNSRecord

const { ARIO } = require('@ar.io/sdk');

async function main() {
  const ario = ARIO.init();
  const arnsRecord = await ario.getArNSRecord({ name: 'ardrive' });

  console.log(arnsRecord);
}

main();

Output

{
  "processId": "bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM",
  "startTimestamp": 1707307200000,
  "endTimestamp": 1739307200000,
  "type": "lease",
  "undernameLimit": 10,
  "purchasePrice": 75541282,
  "renewalPrice": 75541282
}