nearfundocs
The NearFun handbook
SPECIFICATION · 42

Error Handling

NearFun master specification

Create human-readable errors for:

Wallet rejected transaction

Insufficient SOL

Insufficient NEAR

Insufficient base token

RPC unavailable

RPC timeout

Blockhash expired

Simulation failed

Pump program error

Slippage exceeded

Missing token account

Unexpected token program

Invalid NEAR mint state

Unsupported network

Bonding curve completed

Coin graduated

Sharing config already exists

Fee shares already finalized

Metadata upload failed

Transaction confirmation timeout

Preserve underlying technical errors for debugging.

NearFun documentation