getArNSRecord

getArNSRecord is a method on the ARIO class that retrieves the record information for a specified ArNS name, including its process ID, lease duration, type, and undername limit.

getArNSRecord does not require authentication.

Parameters

ParameterTypeDescriptionOptional
namestringThe ArNS name to retrieve record information forfalse

Examples

getArNSRecord

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

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

  console.log(record);
}

main();

Output

{
  "processId": "bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM",
  "endTimestamp": 1752256702026,
  "startTimestamp": 1720720819969,
  "type": "lease",
  "undernames": 100
}