Skip to main content
All types are exported from @x84-ai/sdk and match the on-chain Anchor IDL exactly.

Enums

ServiceType

Identifies the kind of service an agent exposes. Used as a PDA seed for service and payment requirement accounts.

PaymentScheme

Controls how payment amounts are validated during settlement.

SettlementMode

Determines how payment is verified and executed.

Interfaces

DelegationPermissions

Seven boolean flags controlling what a delegate can do on behalf of an agent.

DelegationConstraints

Spending and usage limits for a delegation.

On-chain account structures

ProtocolConfig

Singleton account holding global protocol parameters. Derived from the "config" seed.

AgentIdentity

One account per agent, derived from ["agent", nftMint].

AgentService

One account per agent per service type, derived from ["service", nftMint, serviceTypeSeed].

FeedbackEntry

One account per feedback submission, derived from ["feedback", nftMint, reviewer, nonce].

ValidationRequest

Derived from ["val_request", nftMint, validator, hash[0..8]].

ValidationResponse

Derived from ["val_response", nftMint, validator, hash[0..8]].

Delegation

Derived from ["delegation", delegator, delegate, id].

PaymentRequirement

Derived from ["payment_req", nftMint, serviceTypeSeed].

Events

The program emits 17 event types. Parse them from transaction logs or full transaction data.

Event parsing

Event types