Overview

The Swig Program defines a set of error types to help developers diagnose issues that may arise during development. Each error type is represented as a hex value, with a corresponding human-readable description.

Error TypeDescription
0x3E8Account data is invalid or corrupted
0x3E9Action data is invalid or malformed
0x3EAAuthority data is invalid or malformed
0x3EBRole data is invalid or malformed
0x3ECSwig account data is invalid or malformed
0x3EDSpecified role could not be found
0x3EEError loading permissions
0x3EFAdding an authority requires at least one action
Error TypeDescription
0xBB8Invalid authority provided
0xBB9Invalid authority payload format
0xBBAInvalid data payload format
0xBBBMissing Ed25519 authority account
0xBBCAuthority does not support session-based authentication
0xBBDGeneric permission denied error
0xBBEMissing required permission
0xBBFToken account permission check failed
0xBC0Token account has an active delegate or close authority
0xBC1Token account is not initialized
0xBC2No permission to manage authority
0xBC3Insufficient balance for operation
0xBC4Cannot remove root authority
0xBC5Session has expired
0xBC6Invalid Secp256k1 signature
0xBC7Secp256k1 signature age is invalid
0xBC8Secp256k1 signature has been reused
0xBC9Invalid Secp256k1 hash
0xBCASecp256r1 signature has been reused
0xBCBStake account is in an invalid state
0xBCCCannot reuse session key
0xBCDInvalid session duration
0xBCEToken account authority is not the Swig account
0xBCFInvalid Secp256r1 instruction
0xBD0Invalid Secp256r1 public key
0xBD1Invalid Secp256r1 message hash
0xBD2Invalid Secp256r1 message