Preparing search index...
The search index is not available
@solana/errors
@solana/errors
<internal>
SolanaErrorContext
Type Alias SolanaErrorContext
SolanaErrorContext
:
DefaultUnspecifiedErrorContextToUndefined
<
BasicInstructionErrorContext
<
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID
|
typeof
SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR
,
>
&
{
"-32001"
:
{
__serverMessage
:
string
}
;
"-32002"
:
Omit
<
RpcSimulateTransactionResult
,
"err"
>
;
"-32004"
:
{
__serverMessage
:
string
}
;
"-32005"
:
{
numSlotsBehind
?:
number
}
;
"-32006"
:
{
__serverMessage
:
string
}
;
"-32007"
:
{
__serverMessage
:
string
}
;
"-32009"
:
{
__serverMessage
:
string
}
;
"-32010"
:
{
__serverMessage
:
string
}
;
"-32012"
:
{
__serverMessage
:
string
}
;
"-32014"
:
{
__serverMessage
:
string
}
;
"-32015"
:
{
__serverMessage
:
string
}
;
"-32016"
:
{
contextSlot
:
bigint
}
;
"-32600"
:
{
__serverMessage
:
string
}
;
"-32601"
:
{
__serverMessage
:
string
}
;
"-32602"
:
{
__serverMessage
:
string
}
;
"-32603"
:
{
__serverMessage
:
string
}
;
"-32700"
:
{
__serverMessage
:
string
}
;
"1"
:
{
currentBlockHeight
:
bigint
;
lastValidBlockHeight
:
bigint
}
;
"2"
:
{
actualNonceValue
:
string
;
expectedNonceValue
:
string
}
;
"2800000"
:
{
actualLength
:
number
}
;
"2800001"
:
{
actualLength
:
number
}
;
"2800002"
:
{
putativeAddress
:
string
}
;
"2800005"
:
{
bump
:
number
}
;
"2800006"
:
{
actual
:
number
;
maxSeeds
:
number
}
;
"2800007"
:
{
actual
:
number
;
index
:
number
;
maxSeedLength
:
number
}
;
"3"
:
{
nonceAccountAddress
:
string
}
;
"3230000"
:
{
address
:
string
}
;
"32300001"
:
{
addresses
:
string
[]
}
;
"3230002"
:
{
address
:
string
}
;
"3230003"
:
{
address
:
string
}
;
"3230004"
:
{
addresses
:
string
[]
}
;
"3610007"
:
{
key
:
CryptoKey
}
;
"3704000"
:
{
byteLength
:
number
}
;
"3704001"
:
{
actualLength
:
number
}
;
"3704002"
:
{
actualLength
:
number
}
;
"3704003"
:
{
actualLength
:
number
}
;
"4"
:
{
actualLength
:
number
}
;
"4128000"
:
{
data
?:
ReadonlyUint8Array
;
programAddress
:
string
}
;
"4128001"
:
{
accountAddresses
?:
string
[]
;
programAddress
:
string
}
;
"4128002"
:
{
actualProgramAddress
:
string
;
expectedProgramAddress
:
string
;
}
;
"4615000"
:
{
errorName
:
string
;
index
:
number
;
instructionErrorContext
?:
unknown
;
}
;
"4615026"
:
{
code
:
number
;
index
:
number
}
;
"4615045"
:
{
encodedData
:
string
;
index
:
number
}
;
"5"
:
{
actualLength
:
number
}
;
"5508000"
:
{
address
:
string
}
;
"5508001"
:
{
address
:
string
}
;
"5508002"
:
{
address
:
string
}
;
"5508003"
:
{
address
:
string
}
;
"5508004"
:
{
address
:
string
}
;
"5508005"
:
{
address
:
string
}
;
"5508006"
:
{
address
:
string
}
;
"5508007"
:
{
address
:
string
}
;
"5508008"
:
{
address
:
string
}
;
"5663000"
:
{
programAddress
:
string
}
;
"5663001"
:
{
programAddress
:
string
}
;
"5663004"
:
{
actualVersion
:
number
}
;
"5663005"
:
{
lookupTableAddresses
:
string
[]
}
;
"5663006"
:
{
highestKnownIndex
:
number
;
highestRequestedIndex
:
number
;
lookupTableAddress
:
string
;
}
;
"5663007"
:
{
index
:
number
}
;
"5663009"
:
{
addresses
:
string
[]
}
;
"5663010"
:
{
index
:
number
}
;
"5663015"
:
{
expectedAddresses
:
string
[]
;
unexpectedAddresses
:
string
[]
}
;
"5663017"
:
{
numRequiredSignatures
:
number
;
signaturesLength
:
number
;
signerAddresses
:
string
[]
;
}
;
"5663019"
:
{
unitsConsumed
:
number
}
;
"7"
:
{
value
:
string
}
;
"7050000"
:
{
errorName
:
string
;
transactionErrorContext
?:
unknown
}
;
"7050030"
:
{
index
:
number
}
;
"7050031"
:
{
accountIndex
:
number
}
;
"7050035"
:
{
accountIndex
:
number
}
;
"8"
:
{
value
:
string
}
;
"8078000"
:
{
codecDescription
:
string
}
;
"8078001"
:
{
bytesLength
:
number
;
codecDescription
:
string
;
expected
:
number
;
}
;
"8078005"
:
{
decoderFixedSize
:
number
;
encoderFixedSize
:
number
}
;
"8078006"
:
{
decoderMaxSize
:
number
|
undefined
;
encoderMaxSize
:
number
|
undefined
;
}
;
"8078007"
:
{
actual
:
bigint
|
number
;
codecDescription
:
string
;
expected
:
bigint
|
number
;
}
;
"8078008"
:
{
discriminator
:
bigint
|
number
;
formattedValidDiscriminators
:
string
;
validDiscriminators
:
number
[]
;
}
;
"8078009"
:
{
value
:
bigint
|
boolean
|
number
|
string
|
null
|
undefined
;
variants
:
readonly
(
bigint
|
boolean
|
number
|
string
|
null
|
undefined
)
[]
;
}
;
"8078010"
:
{
formattedNumericalValues
:
string
;
numericalValues
:
number
[]
;
stringValues
:
string
[]
;
variant
:
number
|
string
|
symbol
;
}
;
"8078011"
:
{
codecDescription
:
string
;
max
:
bigint
|
number
;
min
:
bigint
|
number
;
value
:
bigint
|
number
;
}
;
"8078012"
:
{
alphabet
:
string
;
base
:
number
;
value
:
string
}
;
"8078013"
:
{
bytesLength
:
number
;
codecDescription
:
string
}
;
"8078014"
:
{
bytesLength
:
number
;
codecDescription
:
string
;
offset
:
number
;
}
;
"8078015"
:
{
value
:
bigint
|
boolean
|
number
|
string
|
null
|
undefined
;
variants
:
readonly
(
bigint
|
boolean
|
number
|
string
|
null
|
undefined
)
[]
;
}
;
"8078016"
:
{
discriminator
:
bigint
|
number
;
maxRange
:
number
;
minRange
:
number
;
}
;
"8078017"
:
{
maxRange
:
number
;
minRange
:
number
;
variant
:
number
}
;
"8078018"
:
{
constant
:
ReadonlyUint8Array
;
data
:
ReadonlyUint8Array
;
hexConstant
:
string
;
hexData
:
string
;
offset
:
number
;
}
;
"8078019"
:
{
codecDescription
:
string
;
expectedSize
:
number
;
hexZeroValue
:
string
;
zeroValue
:
ReadonlyUint8Array
;
}
;
"8078020"
:
{
encodedBytes
:
ReadonlyUint8Array
;
hexEncodedBytes
:
string
;
hexSentinel
:
string
;
sentinel
:
ReadonlyUint8Array
;
}
;
"8078021"
:
{
decodedBytes
:
ReadonlyUint8Array
;
hexDecodedBytes
:
string
;
hexSentinel
:
string
;
sentinel
:
ReadonlyUint8Array
;
}
;
"8078022"
:
{
stringValues
:
string
[]
}
;
"8100000"
:
{
argumentLabel
:
string
;
keyPath
:
readonly
(
number
|
string
|
symbol
)
[]
;
methodName
:
string
;
optionalPathLabel
:
string
;
path
?:
string
;
value
:
bigint
;
}
;
"8100001"
:
{
headers
:
string
[]
}
;
"8100002"
:
{
headers
:
Headers
;
message
:
string
;
statusCode
:
number
}
;
"8100003"
:
{
method
:
string
;
params
:
unknown
[]
}
;
"8190000"
:
{
notificationName
:
string
}
;
"8190004"
:
{
errorEvent
:
Event
}
;
"9"
:
{
value
:
bigint
}
;
"9900002"
:
{
cacheKey
:
string
}
;
"9900003"
:
{
unexpectedValue
:
unknown
}
;
"9900004"
:
{
channelName
:
string
;
supportedChannelNames
:
string
[]
}
;
}
,
>
A map of every
SolanaError
code to the type of its
context
property.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@solana/errors
Loading...
A map of every SolanaError code to the type of its
context
property.