API for managing deposits, withdrawals, and retrieving information related to Solana stake pools.
API for managing deposits, withdrawals, and retrieving information related to Solana stake pools.
curl -i -X POST \ https://api.rakurai.io/api/deposit \ -H 'Content-Type: application/json' \ -d '{ "pubkey": "Fg5kC6tJ9N5M5MS83M842ms23sNN2732N108dD2", "amount": 54 }'
{ "txn": "BASE64_ENCODED_TRANSACTION_DATA" }
curl -i -X POST \ https://api.rakurai.io/api/withdraw \ -H 'Content-Type: application/json' \ -d '{ "pubkey": "Fg5kC6tJ9N5M5MS83M842ms23sNN2732N108dD2", "amount": 3000000 }'
{ "txn": "BASE64_ENCODED_TRANSACTION_DATA", "pub_key": "Fg5kC6tJ9N5M5MS83M842ms23sNN2732N108dD2", "sec_key": "SECRET_KEY_BASE64_ENCODED", "sig": "TRANSACTION_SIGNATURE_BASE64_ENCODED" }
curl -i -X GET \ https://api.rakurai.io/api/tokenvalue
{ "tokenValue": 1.25 }
curl -i -X GET \ https://api.rakurai.io/api/solvalue
{ "solValue": 163.479 }
curl -i -X GET \ https://api.rakurai.io/api/epochinfo
{ "epochSeconds": 12000, "epoch": 234 }
curl -i -X POST \ https://api.rakurai.io/api/send \ -H 'Content-Type: application/json' \ -d '{ "txn": "0xabcdef1234567890..." }'
{ "txn_signature": "TransactionSignature" }
curl -i -X POST \ https://api.rakurai.io/api/staking/account-status \ -H 'Content-Type: application/json' \ -d '{ "stake_account": "StakeAccountPublicKey" }'
{ "stake_account": { "address": "StakeAccountPublicKey", "status": "Inactive", "stake_authority": "StakeAuthorityPublicKey", "withdraw_authority": "WithdrawAuthorityPublicKey", "vote_account": "VoteAccountPublicKey", "amount": 1000000 } }
curl -i -X GET \ 'https://api.rakurai.io/api/apy?end_epoch=10&epoch=5&start_epoch=1'
{ "apy_values": [ { … } ] }
curl -i -X GET \ 'https://api.rakurai.io/api/tvl?end_epoch=10&epoch=5&start_epoch=1'
{ "tvl_values": [ { … } ] }