accessControlList
accessControlList
is a method on the ANTRegistry
class that retrieves the access control list (ACL) for a specific address, showing which ANTs the address owns and controls.
accessControlList
does not require authentication.
Parameters
← Swipe to see more →
Parameter | Type | Description | Optional |
---|---|---|---|
address | string | The wallet address to retrieve access control information for | false |
← Swipe to see more →
Examples
accessControlList
const { ANTRegistry } = require('@ar.io/sdk');
async function main() {
const antRegistry = ANTRegistry.init();
const acl = await antRegistry.accessControlList({
address: 'ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4'
});
console.log(acl);
}
main();
Output
{
"Owned": [
"bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM",
"xpKSNuZ_h6rOhvjm6Y8hqNy4WbG5xLFsXhM3QrK1bnA"
],
"Controlled": [
"bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM",
"xpKSNuZ_h6rOhvjm6Y8hqNy4WbG5xLFsXhM3QrK1bnA",
"Df2FDNmctRl-BSFgKy9Uo9l8C2mMNsQrR3kQOJWBQq8"
]
}