API Added: account-recovery

in steem •  4 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🚀!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!