Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Group

Parameter

Format

Required

Description

success

boolean

Yes

true if successful

pricing->fio

domain

Int

YesNo

FIO Domain price in SUFs. Only returned if FIO Domain registration is enabled and “Price according to rate of exchange” is checked in wallet profile.

pricing->fio

address

Int

YesNo

FIO Address price in SUFs. Only returned if FIO Address registration is enabled and “Price according to rate of exchange” is checked in wallet profile.

pricing->usdt

domain

Double

YesNo

FIO Domain price in USDT. Only returned if FIO Domain registration is enabled in wallet profile.

pricing->usdt

address

Double

YesNo

FIO Domain price in USDT. Only returned if FIO Address registration is enabled in wallet profile.

Example

Code Block
languagejson
{
  "success": true
  "pricing" : {
    fio: {
      "domain": 400000000000,
      "address": 20000000000
    },
    usdt: {
      "domain": 40.00,
      "address": 2.00
    },  
  error: false
} 

...

Same as https://developers.fioprotocol.io/pages/api/fio-reg-api/#post-/buy-address

Processing

  • Validate

    • Parameters as in https://developers.fioprotocol.io/pages/api/fio-reg-api/#post-/buy-address

    • Check if “Allow FIO Token Purchases” in wallet profile is not checked

      • Return success: false and error: “Not allowed for this referralCode.”

    • Ignore

      • domainRegistrations and addressRegistrations are not validated against wallet profile, meaning this call will work even if domain sale or address sale is disabled.

  • Once request is received:

    • FIO Tokens required is computed based on sum of:

      • domainRegistrations * get_fee for register_fio_domain

      • domainRegistrations * get_fee for set_fio_domain_public

      • addressRegistrations * get_fee for register_fio_address

    • domainRegistrations and addressRegistrations are recorded in order

  • Once payment is received:

    • FIO Tokens required is re-computed (see above)

      • If payment was received within 60 minutes of request and amount is +/- 10%

        • The amount of FIO is adjusted to new number

        • Status is set to Success

      • Else

        • The amount of FIO is not adjusted to new number

        • Status is set to PriceChange

    • Tokens are transferred

    • Webhook fires

...