/sdchain-sdk-php

The PHP version of SDChain SDK

Apache License 2.0Apache-2.0

sdchain-sdk-php

The PHP version of SDChain SDK

Function Description

  1. Contains interfaces provided by REST-API.
  2. Including usage examples.
  3. Explicitly explain the dependent version,and the dependent third-party libraries and their versions.
  4. 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