海运的博客

php通过parity发送eth转账

发布时间:December 24, 2017 // 分类: // 1 Comment

<?php
$from = "0xc562B9310436D9fA01ED015E48145";
$to = "0xAAAB2eC23dd5dd9602e631B8399fA94";
$gas_price = "0x800e8dfc00";
$gas_limit = "0x01d4c0";
$value = "0x018493fba64ef00000";
$data = '{"method":"personal_sendTransaction","params":[{"from":"'.$from.'","to":"'.$to.'","gas": "'.$gas_limit.'", "gasPrice": "'.$gas_price.'","data":"","value":"'.$value.'"},"password"],"id":1,"jsonrpc":"2.0"}';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'localhost:8545');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$data = curl_exec($ch);
print_r($data);
curl_close($ch);

LInux网络测速工具speedtest

发布时间:December 10, 2017 // 分类: // No Comments

wget -O /usr/bin/speedtest https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x /usr/bin/speedtest 
speedtest

选择指定服务器:

speedtest --list
speedtest --list|grep China
speedtest --server 4751
分类
最新文章
最近回复
  • zzg: http://downloads.openwrt.org.cn/PandoraBox/rali...
  • xiongrui: 看图
  • 傻狍子: filebrowser好像和这功能一样? https://github.com/filebro...
  • 陶国文: 想看看能不能安装
  • 傻狍子: 服务端设置了用户名密码认证的话,在openwrt的openvpn客户端的配置文件当中该如何更改...
  • 王阴阳师: 感谢,一点不啰嗦,还很管用!
  • simon: 刚刚看了我的vps,玛德,居然也有人在一直尝试登录,幸好我的密码是强密码
  • thornbird: 又学会一招,不错
  • 头很黑: 除了发送eth转账 ,还能转账其他的代币吗 比如eos
  • 米扑博客: 总结的很棒