Parameters
| Parameter | Type | Description |
|---|---|---|
payer | TransactionSigner | The account that will pay for the transaction |
credential | Address | The credential account to create |
authority | TransactionSigner | The authority who will control the credential |
systemProgram | Address | The System Program account (defaults to ‘11111111111111111111111111111111’) |
name | string | The name of the credential |
signers | Address[] | The list of authorized signers who can create attestations |
Returns
Returns anInstruction ({ accounts, data, programAddress }). Add it to a
transaction and send it with your client, for example
client.sendTransaction(instruction). There is no sendAndConfirm() method.
Create a Client sets up client, payerSigner, and authoritySigner.
Example
Important Notes
- The payer must be a signer of the transaction
- The authority must be a signer of the transaction
- The credential account must be writable
- This operation requires the System Program for rent exemption calculations
- The authority will have control over the credential and can:
- Modify the list of authorized signers
- Create schemas under this credential
- Close the credential
- The authorized signers can:
- Create attestations under this credential
- Close attestations they created
- The name should be descriptive of the credential’s purpose
- The list of signers can be empty initially and modified later
- The authority can be one of the authorized signers