setLogo
setLogo
is a method on the ANT
class that updates the logo of the ANT process. The logo must be specified as an Arweave transaction ID that contains an image.
setLogo
requires authentication.
Parameters
← Swipe to see more →
Parameter | Type | Description | Optional |
---|---|---|---|
txId | string | The Arweave transaction ID of the image to use as the ANT's logo | false |
tags | array | An array of GQL tag objects to attach to the transfer AO message. | true |
← Swipe to see more →
Examples
setLogo
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.setLogo(
{ txId: 'U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f' },
// optional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
}
main();