...
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 | ||
---|---|---|
| ||
{ "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 anderror
: “Not allowed for this referralCode.”
Ignore
domainRegistrations
andaddressRegistrations
are not validated against wallet profile, meaning this call will work even if domain sale or address sale is disabled.
Once request is received:
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
...