Useful dsa-connect functions

Some more important methods that the dsa-connect provides include -

getAuthById()

This method takes dsaId as input and returns the Authority/Authorities for the DSA account.

await dsa.getAuthById(dsaId);
ParameterTypeDescription
dsaIdstring/numberThe Id of the DSA account.

encodeCastABI()

This method returns the encoded format of spells to be used in the low-level call.

await dsa.encodeCastABI(spells);
ParameterTypeDescription
spellsobjectThe instance of Spells with the spells to be cast added to it.

encodeSpells()

This method returns the parameters for the cast function.

await dsa.encodeSpells(spells);
ParameterTypeDescription
spellsobjectThe instance of Spells with the spells to be cast added to it.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.


Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.