fetchNameFromAddress
This function is used to fetch the ANS name for an address.
Usage
import { AptosJSProClient } from "@aptos-labs/js-pro";
const client = new AptosJSProClient({
/* ... */
});
const name = await client.fetchNameFromAddress({
address: "0x926ff619e85bdb5b02680f27bea5ea3302c71f86be4b16fa0d63df213add927a",
});
Parameters
Return Type
The fetchNameFromAddress
function will return an AptosName
or null
if the address does not have an ANS name.
AptosName
Name | Type | Default |
---|---|---|
toString | () => string | |
noSuffix | () => string |
Last updated on