UnsafeTransactionError
Defined in: wallet-solana/src/errors.ts:4
Refused before signing: the transaction would almost certainly destroy funds or sign on someone else’s behalf.
Extends
Section titled “Extends”SignerError
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnsafeTransactionError(
message,code?,details?):UnsafeTransactionError
Defined in: wallet-solana/src/errors.ts:9
Parameters
Section titled “Parameters”message
Section titled “message”string
string
details?
Section titled “details?”readonly string[] = []
Returns
Section titled “Returns”UnsafeTransactionError
Overrides
Section titled “Overrides”SignerError.constructor
Properties
Section titled “Properties”
readonlycode:string|undefined
Defined in: wallet-solana/src/errors.ts:6
Machine-readable reason (e.g. unknown-program, token-drain, slippage); undefined for the generic refusals.
details
Section titled “details”
readonlydetails: readonlystring[]
Defined in: wallet-solana/src/errors.ts:8
What tripped the check (program ids, account addresses…).