Claim Rewards through Desktop Wallet

Amber Hancock
whalecoin.org
Published in
3 min readNov 21, 2017

If you are tired of digging around for your private key every time that you want to claim your rewards, then use this how-to to claim rewards in the desktop WhaleWallet for any Whale.

If you don’t have the Desktop Wallet set up yet, then please go through this how-to first: https://blog.whalecoin.org/whalecoin-wallet-desktop-wallet-walk-through-a9bc94f6c26f

Open the desktop WhaleWallet application.

Then click on “Contracts”

Under “Custom Contracts” click on “Watch Contract”

Enter the Contract Address:

0xEcd72a8546a9a306A31Ee143aaD5486F5aB5400b

And give it a Contract Name. I named it “Claim Rewards.”

Under “JSON Interface” enter this:

[
{
"constant": true,
"inputs": [],
"name": "getNetworkAddress",
"outputs": [
{
"name": "addr",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "claimedShare",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "claimReward",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "reward",
"type": "uint256"
},
{
"indexed": false,
"name": "whale",
"type": "address"
}
],
"name": "Claimed",
"type": "event"
}
]

and click “OK”

Then click on your new Custom Contract

Under the “Select function” toggle menu, click “Claim Reward”

Enter the Whale address you are claiming for, and make sure that the account you are using on your Desktop WhaleWallet has enough WHL to pay the gas, then click “Execute”.

Type in your password and click “Send Transaction.”

You should have a little green message slide in that says your transaction was sent.

Then you can track it on the main page as a “Contract execution” along with all of your other transactions.

This can only be done every 1000 blocks for each Whale account.

Hope that helps!

--

--