curl --request POST \
--url https://devnet-router.magicblock.app/getDelegationStatus \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "getDelegationStatus",
"params": [
"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"isDelegated": true,
"delegationRecord": {
"authority": "11111111111111111111111111111111",
"owner": "3JnJ727jWEmPVU8qfXwtH63sCNDX7nMgsLbg8qy8aaPX",
"delegationSlot": 388473478,
"lamports": 15144960
}
}
}
Get delegation status for a single account.
curl --request POST \
--url https://devnet-router.magicblock.app/getDelegationStatus \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "getDelegationStatus",
"params": [
"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"isDelegated": true,
"delegationRecord": {
"authority": "11111111111111111111111111111111",
"owner": "3JnJ727jWEmPVU8qfXwtH63sCNDX7nMgsLbg8qy8aaPX",
"delegationSlot": 388473478,
"lamports": 15144960
}
}
}
Successful response
The response is of type object
.
Was this page helpful?