用于stellar的python客户端库
stellar-p的Python项目详细描述
恒星py
===
>恒星python客户端库
[![PYPI版本](https://badge.fury.io/py/stellar py.svg)(http://badge.fury.io/py/stellar py)
``python
send_payment(secret,account,destination,amount)
set_regular_key(secret,account,regular_key)
```
下面的操作是分开的,便于脱机使用,
在创建事务json对象的地方,签署事务,
然后作为单独的步骤提交。
``python
tc_json=get_payment_tx_json(account,destination,amount)
tx_blob=sign_transaction(secret,tx_json)
res,msg=submit_transaction(tx_blob)
```
并让stellar py从那里接管。
`` python
import stellar
'transactiontype':'payment',
'account':account,
'amount':amount,
'dest,
}
stellar.完成交易字段(tx json)
tx blob=stellar.签署交易(秘密,tx_json)
stellar.submit_transaction(tx_blob)
````
===
>恒星python客户端库
[![PYPI版本](https://badge.fury.io/py/stellar py.svg)(http://badge.fury.io/py/stellar py)
``python
send_payment(secret,account,destination,amount)
set_regular_key(secret,account,regular_key)
```
下面的操作是分开的,便于脱机使用,
在创建事务json对象的地方,签署事务,
然后作为单独的步骤提交。
``python
tc_json=get_payment_tx_json(account,destination,amount)
tx_blob=sign_transaction(secret,tx_json)
res,msg=submit_transaction(tx_blob)
```
并让stellar py从那里接管。
`` python
import stellar
'account':account,
'amount':amount,
'dest,
}
stellar.完成交易字段(tx json)
tx blob=stellar.签署交易(秘密,tx_json)
stellar.submit_transaction(tx_blob)
````