Skip to content

Error Handling

The SDK returns typed errors via TridentClientError:

VariantWhen
MissingSigner { domain }No signer registered for the requested domain
MissingProvider { domain }No RPC provider registered for the requested domain
MissingContract { domain }Deployment not found for the requested domain
SpendRejected { reason }Attester rejected the spend (insufficient balance, unsupported token, etc.)
ZeroDepositAmountAttempted to deposit zero tokens
Grpc(status)Network/transport error communicating with the attester
Contract(error)On-chain contract call failed
PendingTransaction(error)Transaction submission or receipt retrieval failed