Skip to content

pimlico_getMagicSpendStakes

This method returns the list of stakes for a given user.

Request

{
    "jsonrpc": "2.0",
    "method": "pimlico_getMagicSpendStakes",
    "params": [
        {
            "account": "0x77d1f68C3C924cFD4732e64E93AEBEA836797485"
        }
    ],
    "id": 1
}

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "chainId": "0x14a34",
            "asset": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
            "amount": "0x2386f26fc10000",
            "withdrawTime": 0,
            "unstakeDelaySec": "0x15180",
            "staked": true,
            "pending": "0xf6",
            "remaining": "0x2386f26fc0ff0a"
        },
        {
            "chainId": "0xaa36a7",
            "asset": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
            "amount": "0x2386f26fc10000",
            "withdrawTime": 0,
            "unstakeDelaySec": "0x15180",
            "staked": true,
            "pending": "0x0",
            "remaining": "0x2386f26fc10000"
        }
    ]
}