getArNSReservedName
getArNSReservedName
is a method on the ARIO
class that retrieves details about a specific reserved ArNS name, including its target and any expiration information.
getArNSReservedName
does not require authentication.
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
name | string | The reserved ArNS name to retrieve information for | false |
Examples
getArNSReservedName
const { ARIO } = require('@ar.io/sdk');
async function main() {
const ario = ARIO.init();
const reservedName = await ario.getArNSReservedName({ name: 'arweave' });
console.log(reservedName);
}
main();
Output
{
"target": "some-protected-target-id",
"endTimestamp": null // null indicates permanent reservation
}