1

Is it possible to execute a scheduled function of ethereum alarm clock via desktop version of Ethereum Wallet. I know the contract can be added to custom contract, but unable to see the methods to execute?

1

You can add a custom contract and specify it's ABI in JSON INTERFACE field. The ABI can be taken from Contract ABI area on Etherscan.

However, I found an issue in Ethereum Wallet: in case the ABI contains overloaded functions (such as the case with the Ethereum Alarm Clock contract, there are a bunch of scheduleCall functions with different parameter lists), the wallet always shows the same parameter list regardless of what overloaded function you select (apparently it's the first function's parameters defined in the ABI).

The workaround is to edit the ABI and leave only the function that you need to call, e.g.

[
    {
        "constant": false,
        "inputs": [
            {
                "name": "contractAddress",
                "type": "address"
            },
            {
                "name": "abiSignature",
                "type": "bytes4"
            },
            {
                "name": "callData",
                "type": "bytes"
            },
            {
                "name": "targetBlock",
                "type": "uint256"
            },
            {
                "name": "requiredGas",
                "type": "uint256"
            },
            {
                "name": "gracePeriod",
                "type": "uint8"
            }
        ],
        "name": "scheduleCall",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "type": "function"
    }
]
  • Thanks for the answer, but my question was different. In Mist / Ethereum Wallet you can watch a contract an execute its function, but I was not able to see the execute function of this alarm clock contract. What I asked was is there any alternative way to do it or not? – Rajesh Oct 26 '17 at 13:01
  • @Rajesh do you mean this contract: ethereum-alarm-clock.com? – medvedev1088 Oct 26 '17 at 13:13
  • Yeah, That's right. – Rajesh Oct 26 '17 at 13:14
  • 1
    @Rajesh do you also specify JSON INTERFACE when adding a custom contract? You can get the interface from Contract ABI area here etherscan.io/address/…. After doing this I can see 'Schedule Call' function – medvedev1088 Oct 26 '17 at 13:24
  • 1
    The execution of scheduled requests has many intricacies. You need to read their documentation to understand how to execute requests and get paid. It's a multistage process. Besides that I see no transactions to the production contract here etherscan.io/address/0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b so not sure if you can make any money out of it. – medvedev1088 Oct 29 '17 at 13:33
1

If you would like to participate in execution of Ethereum Alarm Clock contracts, the recommended way is to use TimeNode (either CLI or desktop version). Here's tutorial how to run it.

You indeed need to load keystore file in Electron app downloaded from GitHub: https://github.com/chronologic/eth-alarm-clock-dapp/releases (it works on Windows, OSX and Linux).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.