Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Transfer the ownership of your TestnetConsumer contract to your node
- In remix, click the drop down menu of the TestnetConsumer contract, and paste your node address in the transerOwnership box and click the button.
- Send LINK to the TestnetConsumer contract.
- Ensure there is ETH on your node.
- In the node GUI, click on New Job and paste the JSON blob below.
- Make sure that the 'address' is your TestnetConsumer address and the 'dataPrefix' is 0x followed by the 256 characters from your testnet transaction.
- {
- "initiators": [
- {
- "type": "cron",
- "params": {
- "schedule": "0 */10 * * * *"
- }
- }
- ],
- "tasks": [
- {
- "type": "ethtx",
- "confirmations": 0,
- "params": {
- "address": "0x000000000000000000000000",
- "functionSelector": "requestEthereumPrice(address,string)",
- "dataPrefix": "0x0000000000000000000000000000000000000"
- }
- }
- ]
- }
- In 10 minutes, check to see if any jobs have turned up and find the tx hash on etherscan to see whether or not they have failed.
- twiigz06/23/2019
- amazing. I'm a bit confused as to where I find this "256 characters from your testnet transaction"
- what is that referring to exactly?
- AZ06/23/2019
- did you follow the 'Fulfilling requests' section of the docs?
- When you test your node with the requestEthereumPrice transaction, click the etherscan link and scroll down
- you should find something that looks like this
- Function: requestEthereumPrice(address _oracle, string _jobId) ***
- MethodID: 0xab643c10
- [0]: 0000000000000000000000000000000000000000000000000000000000000000
- [1]: 0000000000000000000000000000000000000000000000000000000000000000
- [2]: 0000000000000000000000000000000000000000000000000000000000000000
- [3]: 0000000000000000000000000000000000000000000000000000000000000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement