Thank you in advance.

I would like to have a working example using the node.js client of iota, where i give an index to a function and the function returns to me the messages or the message ids.

I have tried using

const mes= client.getMessage();

const add=await mes.initialAddressIndex(index);

but give me the error

mes.initialAddressIndex is not a function

Also i would like to ask if you know how is the best form to check if a message was sent by a certain trusted source. A minimal example will be much appreciated.

2 Answers 2


Check out the iota.js lib:


const client = new Iota.SingleNodeClient("https://chrysalis-nodes.iota.org/");
const message = await client.message(messageID);

To fetch a Message by index take a look at:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.