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
Parameter | Type | Description | Optional |
---|---|---|---|
name | string | The ArNS name to retrieve record information for | false |
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
}