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
playerAddresscoinTypestakeconfigId
Example
const tx = client.suigar.tx.createBetTransaction('wheel', {
playerAddress: '0x123',
coinType: '0x2::sui::SUI',
stake: 750_000_000n,
configId: 1,
});
Notes
configIdmust be an integer from0to255.- 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