SORA Online Wallet – API

https://www.iuec.co.jp/api/sora_testnet.php?v={"user":"user","auth":"passphrase","type":"cmd","cmd":"getbalance","param":"user"}
curl -X POST https://www.iuec.co.jp/api/sora_testnet.php \ 
-H "Content-Type: application/json" \ 
-d '{"user":"user","auth":"passphrase","type":"cmd","cmd":"getbalance","param":"user"}'
https://www.iuec.co.jp/api/sora_mainnet.php?v={"user":"user","auth":"passphrase","type":"cmd","cmd":"getbalance","param":"user"}
curl -X POST https://www.iuec.co.jp/api/sora_mainnet.php \ 
-H "Content-Type: application/json" \ 
-d '{"user":"user","auth":"passphrase","type":"cmd","cmd":"getbalance","param":"user"}'

This is the API for the SORA online wallet. We can perform basic operations simply by passing the following JSON to the v query.

The available APIs are as follows.
getbalance, getnewaddress, getnewqaiaddress, sendfrom, gettransaction

JSON structure:
data = {
“user”: “Enter the username. Example: sora”,
“auth”: “Enter the passphrase.”,
“type”: “Enter cmd or reg. Use cmd to use the wallet. Use reg to register user and auth initially.”,
“cmd”: “Enter the wallet API. Example: getbalance”,
“param”: “Enter the wallet API arguments. Example: sora”
}

First, register. [user: sora, passphrase: inu]
{"user":"sora","auth":"inu","type":"reg","cmd":"","param":""}

Check the balance.
{"user":"sora","auth":"inu","type":"cmd","cmd":"getbalance","param":"sora"}

Get the bitcoin-ECDSA address starting with S.
{"user":"sora","auth":"inu","type":"cmd","cmd":"getnewaddress","param":"sora"}

Get the SORA-QAI address starting with sora1.
{"user":"sora","auth":"inu","type":"cmd","cmd":"getnewqaiaddress","param":"sora"}

Send SORA to the specified address.
{"user":"sora","auth":"inu","type":"cmd","cmd":"sendfrom","param":"sora address amount"}

Retrieve transaction information.
{"user":"sora","auth":"inu","type":"cmd","cmd":"gettransaction","param":"txid"}