Last active
August 11, 2021 13:33
-
-
Save matthieu/aec46996d1edd959e1b1c39b633f3515 to your computer and use it in GitHub Desktop.
Calling the Ethereum splitting contract using BlockCypher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contract at: | |
# https://api.blockcypher.com/v1/eth/main/contracts/aa1a6e3e6ef20068f7f8d8c835d2d22fd5116444?token=$TOKEN | |
# http://etherscan.io/address/0xaa1a6e3e6ef20068f7f8d8c835d2d22fd5116444#code | |
# See also https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/ | |
$ cat split.json | |
{ | |
"private": "...", | |
"gas_amount": 200000, | |
"params": ["3f071e84604d712ee034d776ed8f6405e1444c48", "34de916d2afc28564b118a4f2723d0274b223f32"], | |
"value": 100000000000000000 | |
} | |
$ curl -d @split.json https://api.blockcypher.com/v1/eth/main/contracts/aa1a6e3e6ef20068f7f8d8c835d2d22fd5116444/split?token=$TOKEN | |
{ | |
"call_tx_hash": "e936fa223efc752f9cf3abe0e2966fdc88d1512cf6c7957c014f5e949c461383" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment