💛
BETFIN DOCS
ABOUT BETFIN
ABOUT BETFIN
  • ⭐INTRO
  • 🎯TERMS & CONDITIONS OVERVIEW
  • 📗FAQ OVERVIEW
  • TOKENOMY
    • 🪙BET Token
      • 💛Buy BET token
    • 📊BET initial distribution
      • 📊Team Pool
      • 📊Partners Pool
      • 📊Airdrop Pool
      • 📊Affiliate Pool
      • 📊Bonus Pool
    • 💹Vesting & Unlock plan
    • 🔏Liquidity and lockups
      • Community lockup
      • Team.finance lockups
    • 📗Tokenomy FAQ
  • BETFIN GOVERNANCE
    • 📄Betfin Contract Addresses
      • 👀Verify contracts
    • 🏩Betfin governance
      • ⚙️Timelock Principle
      • ⚙️Multisignature (multisig) Principle
    • 👁️‍🗨️Internal Wallets & External Contracts
    • 📗General FAQ
  • SMARTCONTRACTS DESCRIPTION
    • 🌍Contracts Overview
    • 🤖Core
      • 🤖Partner
      • 🤖Tariff
    • 🤖Conservative Staking
      • 🤖Conservative Staking Pool
    • 🤖Dynamic Staking
      • 🤖Dynamic Staking Pool
    • 🤖Pass Contract
      • 🤖Affiliate Member
    • 🤖Affiliate Contract
      • 🤖Affiliate Fund
    • 🖥️Game Interface
    • 🖥️Bet Interface
    • 📟Predict Contract
      • 📟Predict Game
    • 📟Roulette
      • 📟Roulette Bet
    • 🐞Error Codes
  • AUDITS & BUG BOUNTY
    • ☢️Betfin security audits
    • 🔰Bug Bounty
    • 👷Report an Issue
  • For Developers
    • 💻Web Template
    • 📑Smart Contract Template
Powered by GitBook
On this page
  1. SMARTCONTRACTS DESCRIPTION

Bet Interface

The Bet Interface provides methods to interact with a betting contract on the Ethereum blockchain. This interface allows users to retrieve various information related to a bet, such as player address, bet amount, payout result, bet status, game address, and creation timestamp.

Interface Methods

  1. getPlayer

    • Description: Returns the address of the player who placed the bet.

    • Usage: Call this method to retrieve the address of the player.

    • Return Type: address

  2. getAmount

    • Description: Returns the amount of the bet.

    • Usage: Call this method to retrieve the amount of the bet in Wei.

    • Return Type: uint256

  3. getResult

    • Description: Returns the payout result of the bet.

    • Usage: Call this method to retrieve the payout result of the bet.

    • Return Type: uint256

  4. getStatus

    • Description: Returns the status of the bet.

    • Usage: Call this method to retrieve the status of the bet.

    • Return Type: uint256

  5. getGame

    • Description: Returns the address of the game associated with the bet.

    • Usage: Call this method to retrieve the address of the game contract.

    • Return Type: address

  6. getCreated

    • Description: Returns the timestamp when the bet was created.

    • Usage: Call this method to retrieve the creation timestamp of the bet.

    • Return Type: uint256

  7. getBetInfo

    • Description: Returns all relevant information about the bet.

    • Usage: Call this method to retrieve all data related to the bet at once, including player address, game address, bet amount, payout result, bet status, and creation timestamp.

    • Return Type: (address, address, uint256, uint256, uint256, uint256)

PreviousGame InterfaceNextPredict Contract

Last updated 1 year ago

🖥️