LogoLogo
Back to AppHelp Center
  • Getting Started
    • Welcome
  • OrdinalsBot API
    • Overview
    • Libraries
    • Template-App
    • Signet
    • Testnet
    • Getting Prices
      • Getting Prices (Legacy)
    • Create a Direct Inscription Order
    • Create a Managed Inscription Order
    • Get Order Status
    • Create a Collection
    • Create a Collection Order
    • Create Text Inscription Order
    • Search Inscriptions
    • Check Rare Sats Inventory
    • Referral Scheme
    • Transaction Accelerator
    • Burning Assets
    • Webhooks
    • Order States
    • Order Types
  • Runes
    • Etch
    • Mint
    • Direct Mint
      • 1. Generate Direct Mint PSBT
      • 2. Direct Rune Mint Process PSBT
    • Launchpad
      • Create
      • Mint
      • Get Launchpad
    • Airdrop
  • Token Pay
    • What is TokenPay?
    • API Docs
      • API reference
        • Order
        • Create payment psbt
        • Create burn rune psbt
        • Validate burn rune tx
        • Create burn inscription psbt
        • Utils
          • Checktx
          • Submittx
          • Finalize psbt
        • User
          • Withdrawal
          • Order
            • Rune
          • Account
            • Withdraw
            • Balance
      • Specification
  • Marketplace
    • User Guide: Pre-Inscribed Launchpad API
    • API Docs
      • Data API
    • Editions Launchpad
  • Launchpad API
    • Create Marketplace
    • Create a new Launchpad
    • Retrieve Launch PSBT
    • Confirm Launch
    • Check Allocation
    • Check for Padding Outputs
    • Setup Padding Outputs
    • Create buy offer
    • Confirm buy offer
    • Get Launch Info
  • Sat Scanner API
    • Find Special Ranges
    • Find Special Ranges UTXO
    • Supported Satributes
  • Sat Extractor
    • Extract
  • BRC20 / BRC2.0PROG
    • OPI API
    • Bitcoin Remix
  • SNS API
    • SNS API
  • Mempool API
    • Mempool API
  • TAP PROTOCOL
    • Tap Reader API
  • UTXO
    • Split
  • User Guide
    • Inscribe your first Ordinal
    • Receiving Payments
  • Knowledge Base
    • Ordinals
      • What is an Ordinal?
      • Satoshi Rarity
      • What are BRC-20 Tokens?
      • Image Optimisation
      • Pixel Art
    • Bitcoin
      • Unspent Transaction Output (UTXO)
  • Official Links
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Getting Referral Earnings
  • Get Referral Status
  • Saving Referral Code
  • Set referral code and payout address
  1. OrdinalsBot API

Referral Scheme

PreviousCheck Rare Sats InventoryNextTransaction Accelerator

Last updated 6 months ago

Getting Referral Earnings

Remember you can always earn referral commissions without using the API.

Just share your referral link with your community, visitors or followers and you'll automatically earn referral commissions from the inscriptions they make.

Use this endpoint to check earnings for your referrals code:

Get Referral Status

GET https://api.ordinalsbot.com/referrals

Check referral earning status.

Your referral earning is calculated as

paidCount * baseFee * 0.15

(e.g. 100 * 9000 (sats) * %15 commission)

Query Parameters

Name
Type
Description

referral*

String

Your referral code

address*

String

Your bitcoin address that you've set for payouts

{
    "address":"bc1qxxx",
    "orderCount":962, // how many orders were created with your reflink
    "paidCount":305 // how many paid orders were processed.
}
{
    status: 'error', 
    error: 'error reason'
}
{
    status: 'error',
    reason: 'unable to check data'
}

Saving Referral Code

Use this endpoint to set a unique referral code for yourself.

Set referral code and payout address

POST https://api.ordinalsbot.com/referrals

Use this endpoint to set your referral code and payout address. Your address allows you to query your referral earnings.

Request Body

Name
Type
Description

referral*

String

Your unique referral code

address*

String

Your bitcoin address that you want to receive payouts to.

{
    "status":"ok" // your information is saved.
}
{
    status: 'error', 
    error: 'referral code already exists - pick another one'
}
{
    status: 'error',
    reason: 'unable to set data'
}

Get in touch for any questions regarding referral setup in our discord:

https://ordinalsbot.com/?ref=your-referral-code
https://discord.ordinalsbot.com