releaseName
releaseName
is a method on the ANT
class that releases a name from the ANT and makes it available for auction on the ARIO contract. The name must be permanently owned by the releasing wallet. 50% of the winning bid will be distributed to the ANT owner at the time of release. If no bids, the name will be released and can be reregistered by anyone.
releaseName
requires authentication.
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
name | string | ArNS name to release | false |
ioProcessId | string | Process Id of the ARIO contract. | false |
tags | array | An array of GQL tag objects to attach to the transfer AO message. | true |
Examples
releaseName
const fs = require("fs");
const { ANT, ArweaveSigner } = require("@ar.io/sdk");
async function main() {
const jwk = JSON.parse(fs.readFileSync("KeyFile.json"));
const ant = ANT.init({
signer: new ArweaveSigner(jwk),
processId: "bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM"
});
const { id: txId } = await ant.releaseName({
name: 'permalink',
ioProcessId: ARIO_TESTNET_PROCESS_ID, // releases the name owned by the ANT and sends it to auction on the ARIO contract
});
}
main();