我正在考虑/试图建立一个支付系统。只是为了更多地了解密码。我想生成公钥和私钥。并使用python向eth网络发送(广播)支付。我怎么发动汽车呢?顺便说一句。谢谢你的帮助和信息。
发布于 2017-12-24 00:29:50
您可以使用一些工具,下面是帮助您入门的链接:
Web3Py:
聚醚:
主程序客户端(geth,可以通过web3py插入):
发布于 2017-12-24 02:05:13
我做了一些类似的事情,但只需要节省使用Ethereum。因此,我没有学习这些用于与网络交互的低于标准的python工具,而是使用javascript,然后在python中提交带有传递参数的javascript文件。
下面是在python中调用我的'Details.js‘文件的基本程序:
from Naked.toolshed.shell import execute_js
def ex(file_path, arguments=""):
try:
if len(arguments) > 0:
js_command = file_path + " " + arguments
else:
js_command = file_path
return execute_js(js_command) # return result of execute() of node.js file
except Exception as e:
if DEBUG_FLAG:
sys.stderr.write("Naked Framework Error: unable to run the shell command with the run_js() function (Naked.toolshed.shell.py).")
raise e
ex('Details.js',"0xc99CC3CeD3208A5637bdb52cD2aD03550A62F71C")我更喜欢这种方式,因为它更容易找到关于如何发送以太事务的javascript示例。
https://ethereum.stackexchange.com/questions/34259
复制相似问题