Skip to content
Creates a new credential that defines an attestation authority. This instruction allows users to create credentials that specify who can issue attestations and what types of attestations they can issue.

​Parameters

ParameterTypeDescription
payerTransactionSignerThe account that will pay for the transaction
credentialAddressThe credential account to create
authorityTransactionSignerThe authority who will control the credential
systemProgramAddressThe System Program account (defaults to ‘11111111111111111111111111111111’)
namestringThe name of the credential
signersAddress[]The list of authorized signers who can create attestations

​Returns

Returns an Instruction ({ 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