Skip to main content

Wheel

Use Wheel when you want to build a wager against one of the supported Wheel configs.

What the builder does

createBetTransaction('wheel', options) validates the selected configId, converts it to u8, and builds the Wheel play transaction.

Required options

  • playerAddress
  • coinType
  • stake
  • configId

Example

const tx = client.suigar.tx.createBetTransaction('wheel', {
playerAddress: '0x123',
coinType: '0x2::sui::SUI',
stake: 750_000_000n,
configId: 1,
});

Notes

  • configId must be an integer from 0 to 255.
  • This builder follows the same standard-game flow as Coinflip, Limbo, Plinko, and Range.
  • partner attribution is injected automatically when the extension is registered with partner