Error Placing BetOrder The program expected this account to be already initialized
#11
Answered
by
druspencer
druspencer
asked this question in
Q&A
-
When attempting to place a BetOrder, the following error is returned - what am I missing?
|
Beta Was this translation helpful? Give feedback.
Answered by
druspencer
Aug 24, 2022
Replies: 2 comments 2 replies
-
This error is raised when the wallet you are using to place the betOrder doesn't have a balance for the token the market uses. You should:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
druspencer
-
@druspencer In production, lets say user wants to wager a bet. how does the user get the betting tokens in first place to Place Order ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error is raised when the wallet you are using to place the betOrder doesn't have a balance for the token the market uses. You should:
mintAccount
used on the market, this is returned in themarketAccount
on methods such asgetMarket
andgetMarketAccountsByStatus