Get Accreditations
Get Accreditations
This guide demonstrates how to get accreditations from a hierarchy.
Prerequisites
- An existing hierarchy on the IOTA network
- Access to a hierarchy client (read-only access is sufficient)
Available Read-Only Methods
All hierarchies support the same comprehensive read-only interface:
- Get Accreditations: Get accreditations from a hierarchy
1. Set Up Read-Only Client
You can use either a full client or a read-only client for inspection:
2. Create Federation
Create a new Federation:
3. Add Properties to Federation
Add properties which will be used to create attestations and accreditations:
4. Create and Get Accreditation to Attest
Create an accreditation that allows a receiver to attest to specific statements, then retrieve it:
5. Create and Get Accreditation to Accredit
Create an accreditation that allows a receiver to grant accreditations to others, then retrieve it:
Key Differences
- Accreditation to Attest: Allows a receiver to create attestations for specific properties
- Accreditation to Accredit: Allows a receiver to grant accreditations to other entities
- Read-Only Access: Getting accreditations only requires read-only access to the hierarchy
- Verification: Both types of accreditations can be retrieved and verified using the same read-only interface
Full Example Code
Running Examples Locally
In order to run the examples, you will need to run an IOTA network locally.
If you want to use something different, you will need to modify the API and faucet endpoints in the examples to match your setup.