Last active
June 11, 2017 05:45
-
-
Save masterial/e4d3b9947f760eb51b734943df2ebee1 to your computer and use it in GitHub Desktop.
Swarm
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
http://swarm-gateways.net/bzz:/<hash> | |
http://swarm-gateways.net/bzz:/theswarm.eth/ | |
ensutils-testnet.js from the ENS repo: https://github.com/ethereum/ens/blob/master/ensutils-testnet.js | |
then it is: | |
geth \ | |
--preload 'ensutils-testnet.js' \ | |
--exec 'publicResolver.setContent(namehash("lmars.eth"), "0x<hash>", {from: eth.accounts[0]})' \ | |
attach | |
geth \ | |
--preload 'ensutils-testnet.js' \ | |
--exec 'resolverContract.at(ens.resolver(namehash('lmars.eth'))).setContent(namehash("lmars.eth"), "0x<hash>", {from: eth.accounts[0]})' \ | |
attach | |
####### | |
curl -s http://localhost:8500/bzz:/027e57bcbae76c4b6a1c5ce589be41232498f1af86e1b1a2fc2bdffd740e9b39 | |
http://swarm-gateways.net/bzz:/027e57bcbae76c4b6a1c5ce589be41232498f1af86e1b1a2fc2bdffd740e9b39 | |
####### | |
http://swarm-gateways.net/bzz:/4149104a254be083cccbb04bd62de541ed31349c8f585e1437ef1e1a26791668 | |
bzz://0x4149104a254be083cccbb04bd62de541ed31349c8f585e1437ef1e1a26791668 | |
####### | |
####### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment