I am building a stake pool for my spl-token on Solana. On my website I can get staked amount of an address by Anchor to call rpc API via connected program.
Is there any way to get staked amount of a wallet address from my server?
I am building a stake pool for my spl-token on Solana. On my website I can get staked amount of an address by Anchor to call rpc API via connected program.
Is there any way to get staked amount of a wallet address from my server?
the following API call should work:
H = {"Content-Type": "application/json"}
B = f''' {{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts"
}}'''
r = requests.post(RPC_URL, headers=H, data=B).json()['result']
print(r)