API Added: account-recovery

in Witness Activities2 months ago

I've added an API to find the account recovery:

curl -s "https://api.justyy.workers.dev/api/steemit/account-recovery/?cached&id=justyy222" | jq
{
"requests": [
{
"id": 2238,
"account_to_recover": "justyy222",
"recovery_account": "happyukgo",
"effective_on": "2024-09-24T06:15:33"
}
]
}

image.png

Passing parameter with POST is also fine:

curl -s -X POST -d "id=justyy222" "https://api.justyy.workers.dev/api/steemit/account-recovery/?cached" | jq

If no account recovery changes in process, you will find the "requests" field an empty array.

When account id is not given, or not found, it will return "null". When account name is not valid, it will report error. For example:

curl -s "https://api.justyy.workers.dev/api/steemit/account-recovery/?cached&id=justyy222asdfasdfasdf" | jq
"Account name should be shorter."

Steem to the Moon🚀!

Sort:  

This post has been featured in the latest edition of Steem News...

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68859.62
ETH 2444.01
USDT 1.00
SBD 2.34