Auto-Boosts
Learn about Auto-Boosts, a feature enabling the automatic issuance of credentials (Boosts) to users immediately upon their consent to a specific contract. This section details their configuration within contracts and the automated issuance process.
Auto-Boost System
Auto-boosts are credentials automatically issued when a user consents to a contract. This feature allows contract creators to automatically reward users who consent to their contracts.
Configuration
Auto-boosts are configured when creating a contract:
{
// other contract fields
autoboosts: [
{
boostUri: 'boost:123',
signingAuthority: {
endpoint: 'https://signing-authority.example.com',
name: 'my-authority'
}
}
]
}
Key requirements:
The contract creator must have permission to issue the boost
The boost must be published (not a draft)
The specified signing authority must exist for the contract creator
Each auto-boost can use a different signing authority
Issuance Process
Auto-boosts are processed during:
Initial consent via
consentToContract()
Re-consent via
reconsentTerms()
Terms update via
updateTerms()
For each auto-boost, the system:
Gets the signing authority information from the relationship
Gets the contract owner's signing authority
Prepares the boost credential with the consenter's information
Issues the credential using the contract owner's signing authority
Records a "write" transaction
Sends the boost to the consenter
If a signing authority doesn't exist, that specific auto-boost will be skipped.
Last updated
Was this helpful?