How-to guides > Claim

Claim winnings

Pull payout from a resolved winning market.

Claim winnings

Winners claim after settlement. Quovra uses pull payments to keep settlement compute safe.

Requirements

  • Market is resolved.
  • Wallet has a Position PDA for the market.
  • Position outcome matches the winning side.
  • Position has not already claimed.

TypeScript

ts
import { Connection } from "@solana/web3.js"
import { claim } from "./src/lib/quovra-client"

const connection = new Connection("https://api.devnet.solana.com", "confirmed")
const signature = await claim(connection, wallet, marketPubkey)
console.log(signature)

Payout formula

text
payout = stake + stake * losing_total / winning_total

Integer division may leave dust in the vault.

Expected result

  • position.claimed = true.
  • Winner ATA receives payout.
  • A second claim fails with AlreadyClaimed.

Related pages

Search keywords

claim, payout, pull payment, winner, vault authority

Last updated: [YYYY-MM-DD]