getAllCredentials(contract, templateID)

Feature
Get information of all credentials with given template ID.

Parameters

string contract Address, string template ID,

data of SuccessResponse

object all credential information

example

const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const templateID = "testTemplate";

// Note: an asynchronous request.
const credentialInfo = async () => {
  const info = await mitum.credential.getAllCredentials(contractAddress, templateID);
  console.log(info);
};
credentialInfo();

//output
[
    {
      _hint: 'mitum-currency-hal-v0.0.1',
      _embedded: [Object],
      _links: [Object]
    },
    {
      _hint: 'mitum-currency-hal-v0.0.1',
      _embedded: [Object],
      _links: [Object]
    }
]

Last updated