The python version of SDChain SDK
- Contains interfaces provided by REST-API.
- Including usage examples.
- Explicitly explain the dependent version,and the dependent third-party libraries and their versions.
- Includes instructions on how to run the examples.
functions:
SDK ini: APIServer.init(serverUrl,version,...);
SDK-APIS:
seq | api | url | new |
---|---|---|---|
1 | Wallet.newWallet(); | GET : /v1/wallet/new | Y |
2 | Wallet.getBalance(...); | GET : /v1/accounts/balances/{:address} | Y |
3 | Wallet.submitPayment(...); | POST : /v1/accounts/payments/{:source_address}?submit=true | Y |
4 | Wallet.getPaymentList(...); | GET : /v1/accounts/payments/{:address} | Y |
5 | Wallet.getPaymentInfo(...); | GET : /v1/accounts/payments/{:address}/{:hash} | Y |
6 | Wallet.getTransactionList(...); | GET : /v1/accounts/transactions/{:address} | Y |
7 | Wallet.getTransactionInfo(...); | GET : /v1/accounts/transactions/{:address}/{:hash} | Y |
8 | Wallet.getOrderList(...); | GET : /v1/accounts/orders/{:address} | Y |
9 | Wallet.submitOrder(...); | POST : /v1/accounts/orders/{:address} | Y |
10 | Wallet.deleteOrder(...); | DELETE : /v1/accounts/orders/{:address}/{:sequence} | Y |
11 | Wallet.getOrderInfo(...); | GET : /v1/accounts/orders/{:address}/{:hash} | Y |
12 | Server.getTransactionFee(); | GET : /v1/transaction-fee | Y |
13 | Server.getInfo(); | GET : /v1/server | Y |
14 | Server.isConnected(); | GET : /v1/server/connected | Y |