Pharo
  • 🟢Getting Started
  • 🤝Meet Pharo
    • ❔Why Pharo
    • 🌪️Use Cases
    • 📐Architecture
  • ✨Protocol
    • 🎨Product Design
    • 💰Pricing Models
    • 🏛️Capitol Provision
    • 📊Risk Assessment
  • 🛣️Roadmap
  • ⁉️FAQs
  • Market Manager
    • 💹Creating a Pharo Market
    • 👩‍💼Managing a Market
  • Liquidity Provider
    • 🎯Selecting a Market
    • 💵Provide Liquidity
  • Cover Buyer
    • 🤔What it means to buy cover
    • 🔅Buy Cover
  • Governance
    • Overview
    • Process
      • 📄Writing A Proposal
    • Glossary
    • Adversarial Circumstances
    • Governance Reference
  • PHRO Token
    • Overview
    • 🪙Tokenomics
    • Staking
    • 📄Contracts
    • 🐪PHRO Distribution Speed
  • Guides
  • Beginners Guide to Voting
  • Setting Up Your Local Environment
    • Hardhat
    • Foundry
  • API Reference
    • Start Here Developer
  • Technical Reference
    • Litepaper
    • Smart Contracts Overview
    • Pharo SDK
    • Anubis
    • Obelisk
Powered by GitBook
On this page
  • Speculate Rewards
  • Fetch all user records

Was this helpful?

  1. API Reference

Start Here Developer

API endpoints for Anubis

Speculate Rewards

POST http://api.pharo.tech/user/speculateRewards

This endpoint allows you to fetch estimated rewards.

Headers

Name
Type
Description

Content-Type*

string

application/json

Request Body

Name
Type
Description

pharo_id*

int

the id of the Pharo

rate_estimate*

int

rate_stake*

int

event_hypothetical*

int

{
  "pharo_id": 0,
  "reward": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Fetch all user records

GET http://api.pharo.tech/user/read

Headers

Name
Type
Description

Content-Type*

string

application/json

[
  {
    "pharo_id": 0,
    "username": "string",
    "wallet_id": "string",
    "stake": 0,
    "reward": 0,
    "rate_estimate": 0,
    "min_cover": 0,
    "tbl_id": 0
  }
]

PreviousFoundryNextLitepaper

Last updated 1 year ago

Was this helpful?