Drift Protocol v2

โŒ˜K
๐Ÿ‘พWelcome to Drift Protocol
๐ŸงฎDrift DEX
๐Ÿ‘‹Getting Started
๐Ÿ“ˆPerpetual Futures
๐Ÿ“ŠSpot Margin Trading
๐ŸฆBorrow & Lend
๐Ÿ›๏ธStaking
๐ŸชMarket Makers
๐Ÿ”ฌTechnical Explanations
๐Ÿ“Accounting and Settlement
โž—Borrow Interest Rate
๐Ÿ“œDelisting Process
โ›ฒDrift AMM
๐ŸƒJust-In-Time (JIT) Auctions
๐Ÿ“šKeepers & Decentralised Orderbook
โ˜ ๏ธLiquidators
๐Ÿ’งLiquidity Providers (LPs)
๐Ÿ“‹Protocol Guard Rails
๐Ÿ“Risks
๐Ÿ–ฅ๏ธDeveloper Resources
๐Ÿ“”Program/Vault Addresses
โŒจ๏ธSDK Documentation
โŒจ๏ธTutorial: Bots
โš ๏ธTroubleshooting
๐Ÿ› ๏ธKeeper Bots
๐Ÿ› ๏ธTrading Bots
โŒจ๏ธHistorical Data (v1)
โŒจ๏ธAPI
๐Ÿ›ก๏ธSecurity
๐Ÿ›ก๏ธAudits
๐Ÿ›ก๏ธBug Bounty
โš–๏ธLegal and Regulations
๐Ÿ“Terms of Use
๐Ÿ“Disclaimer
๐Ÿ“Privacy Policy
๐Ÿ“Competition Terms and Conditions
๐Ÿ“šGlossary
Docs powered byย archbeeย 
4min

Troubleshooting

Failed to get token account balance

The account in KEEPER_PRIVATE_KEY does not have a USDC account

Shell
|
SolanaJSONRPCError: failed to get token account balance: Invalid param: could not find account
    at Connection.getTokenAccountBalance (/Users/user/Drift/keeper-bots-v2/node_modules/@solana/web3.js/src/connection.ts:2704:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async runBot (/Users/user/Drift/keeper-bots-v2/src/index.ts:252:22)
    at async recursiveTryCatch (/Users/user/Drift/keeper-bots-v2/src/index.ts:473:3)
    at async recursiveTryCatch (/Users/user/Drift/keeper-bots-v2/src/index.ts:481:3) {
  code: -32602,
  data: undefined
}
๏ปฟ

๏ปฟ

ClearingHouseUser does not exist

The account in KEEPER_PRIVATE_KEY has not been initialised on the ClearingHouse program yet. See ๏ปฟKeeper Bots for how to initialise the ClearingHouseUser

Shell
|
[2022-08-15T22:46:19.236Z] error: ClearingHouseUser for bot69e9FXGoKzvAdGnN8uVVDCfLdLUX6K5wsXdrS3Dd3 does not exist
Error: Run with '--init-user' flag to initialize a ClearingHouseUser
    at runBot (/Users/user/Drift/keeper-bots-v2/src/index.ts:271:10)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async recursiveTryCatch (/Users/user/Drift/keeper-bots-v2/src/index.ts:473:3)
๏ปฟ

๏ปฟ

Misc Transaction Errors

Since running a Keeper is a profit-seeking endeavour, it is not unusual to run into competition while filling orders and liquidating dangerous positions. These errors can happen at various commitment levels, and how you handle them will be dependent on your skillset and craftiness. If you're looking for friends, come to #dev-chat and leak some alpha ๐Ÿค“.

Updated 21 Feb 2023
Did this page help you?
Yes
No
UP NEXT
Keeper Bots
Docs powered byย archbeeย 
TABLE OF CONTENTS
Failed to get token account balance
ClearingHouseUser does not exist
Misc Transaction Errors