💛
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

Game Interface

PreviousAffiliate FundNextBet Interface

Last updated 1 year ago

The GameInterface is an integral part of a BetFin gaming ecosystem, designed to standardize how games interact within the rest system. This interface ensures that any game implementing it will adhere to a specific structure, making it easier to integrate with wallets, other games, or platforms that need to interact with various games without knowing their internal implementations.

Key Functions 🔑🔧

The interface consists of several crucial functions, each serving a specific purpose within the gaming ecosystem:

Function
Returns
Description

getAddress()

address

Returns the address of the game contract. Useful for identification and transactions.

getVersion()

uint256

Provides the version of the game. This could be used for compatibility checks.

getFeeType()

uint256

Indicates the type of fee mechanism the game uses. 0 means the fee is taken from the player's bet ,generally for , while 1 indicates the fee comes from the game's core balance, generally for

getStaking()

address

Returns the address of the staking contract associated with the game, if any. Staking to be used for rewards or other in-game mechanics.

placeBet()

address

A function to place a bet or initiate a game action. It requires the player's address, the amount, and any relevant game data.

🖥️
Shared Games
Lotto Games