Classic version - User accessible functions
Last updated
Last updated
All user functions require an id to access a certain prediction. The IDs are as follows for all blockchains: ID 0: BTC ID 1: ETH ID 2: Matic Min position size: BSC: 0.01 BNB Polygon: 5 Matic
Function Name
Description and Parameters
claim
Allows users to claim their earnings from a specific contract. The user is required to enter the prediction contract id and an array of the claimable rounds. All of the rounds entered must be claimable, otherwise the transaction will revert.
predictionIds: uint256[] (ids are given above)
rounds: uint256[]
Example call: claim([0], [4, 9, 153])
claimable
Allows users to check if a round of a specific prediction contract is won and claimable.
predictionId: uint256 (ids are given above)
epoch: uint256 (round number to check)
userAddress: address
Example call: claimable(0, 1000, address)
refundable
Allows users to check if a round of a specific prediction contract is canceled and refundable.
predictionId: uint256 (ids are given above)
epoch: uint256 (round number to check)
userAddress: address
Example call: refundable(0, 1000, address)
currentEpoch
Allows user to get the current round number.
Example call: currentEpoch ()
timestamps
Allows user to check the start, lock and closing timestamp of a given round. Example call: timestamps(roundnumber)
Running on BNB Smart Chain
Running on Polygon Network
BTC, ETH
BTC, ETH, MATIC