AR.IO SDKANT Contracts
Metadata
setName()
Sets the name of the ANT process.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.setName(
{ name: 'My ANT' },
// optional additional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
setTicker()
Sets the ticker of the ANT process.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.setTicker(
{ ticker: 'ANT-NEW-TICKER' },
// optional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
setDescription()
Sets the description of the ANT process.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.setDescription(
{ description: 'A friendly description of this ANT' },
// optional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
setKeywords()
Sets the keywords of the ANT process.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.setKeywords(
{ keywords: ['Game', 'FPS', 'AO'] },
// optional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
getLogo()
Returns the TX ID of the logo set for the ANT.
const logoTxId = await ant.getLogo();
setLogo()
Sets the Logo of the ANT - logo should be an Arweave transaction ID.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.setLogo(
{ txId: 'U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f' },
// optional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
How is this guide?