I tried calculating the balance for address 35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near.
As shown in the explorers the balance for the above address is 3.50036 Ⓝ. But when I see the transactions the deposit is 0 for all the transactions. Url from explorer: https://nearblocks.io/address/35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near# https://explorer.near.org/accounts/35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near
Even when I try the below curl queries for the transaction hash and the address I don't get the amount transferred to this address.
Please let me know how is the balance for this address calculated and how can I get them.
And also how can I get the lockeup balance as shown in the below screen shot.
Transaction Hash: GMnNyCRhFZvWThSs6sCurzh3AL4HJ4kAnEQprSm2QPQ2
curl --location 'https://archival-rpc.mainnet.near.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "tx",
"params": ["GMnNyCRhFZvWThSs6sCurzh3AL4HJ4kAnEQprSm2QPQ2",
"35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near"]
}'
Transaction Hash: C651EP3V6yojcKf5uQyvhLqi2Q8iKFtFHxE8aJz8f14q
curl --location 'https://archival-rpc.mainnet.near.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "tx",
"params": ["C651EP3V6yojcKf5uQyvhLqi2Q8iKFtFHxE8aJz8f14q",
"35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near"]
}'
Transaction Hash: 93u2H6FGbYM6mYk5RXSbGyyLRAvdYjyz4amwsTnhiWKW
curl --location 'https://archival-rpc.mainnet.near.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "tx",
"params": ["93u2H6FGbYM6mYk5RXSbGyyLRAvdYjyz4amwsTnhiWKW",
"35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near"]
}'
The balance for the lockups could be unintuitive. I guess your question is about these 3.5 NEAR, why you don't have access to this amount. They are blocked by the lockup contract: https://github.com/near/core-contracts/blob/master/lockup/src/lib.rs#L31-L33
So, until the contract is active, you have no access to this amount. But, this amount still belongs to the account. Be careful, different wallets may show this information in different ways.