Function: buildPredictionMarketBuyIntent()
Build a prediction-market BUY intent — INCOMING approval where the creator wants to RECEIVE tokenAmount of token-id (1=YES / 2=NO) and pays paymentAmount of…
buildPredictionMarketBuyIntent(
args):Record<string,unknown>
Defined in: packages/bitbadgesjs-sdk/src/core/prediction-markets.ts:846
Build a prediction-market BUY intent — INCOMING approval where the
creator wants to RECEIVE tokenAmount of token-id (1=YES / 2=NO) and
pays paymentAmount of paymentDenom. Proto-shape only.
Pair with MsgSetIncomingApproval to post on-chain. Mirrors the FE's
UserOutgoingApprovalRegistry.predictionMarketBuyIntent (the FE name
is misleading — it's an incoming approval, posted via MsgSetIncomingApproval).
Parameters
args
Returns
Record<string, unknown>