Prosus Academy

( wiki.prosus.money )

Herramientas de usuario

Herramientas del sitio


api-wallet

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
api-wallet [2019/02/02 18:50]
YerkoBits texto definitivo
api-wallet [2019/10/16 15:37] (actual)
YerkoBits
Línea 54: Línea 54:
   <​b>​tracking_key</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show the tracking key of the opened wallet<​br>​   <​b>​tracking_key</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show the tracking key of the opened wallet<​br>​
   <​b>​transfer</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​transfer <​mixin_count>​ <​addr_1>​ <​amount_1>​ [<​addr_2>​ <​amount_2>​ ... <​addr_N>​ <​amount_N>​] [-p payment_id] [-f fee] - Transfer <​amount_1>,​... <​amount_N>​ to <​address_1>,​... <​address_N>,​ respectively. <​mixin_count>​ is the number of transactions yours is indistinguishable from (from 0 to maximum available)<​br>​   <​b>​transfer</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​transfer <​mixin_count>​ <​addr_1>​ <​amount_1>​ [<​addr_2>​ <​amount_2>​ ... <​addr_N>​ <​amount_N>​] [-p payment_id] [-f fee] - Transfer <​amount_1>,​... <​amount_N>​ to <​address_1>,​... <​address_N>,​ respectively. <​mixin_count>​ is the number of transactions yours is indistinguishable from (from 0 to maximum available)<​br>​
 +</​html>​
 +
 +----
 +
 +<​html>​
    <​br><​b>​Simplewallet JSON RPC API :</​b><​br><​br>​    <​br><​b>​Simplewallet JSON RPC API :</​b><​br><​br>​
    To start wallet JSON RPC API server you should specify a port on which server binds (additionally to standard wallet'​s arguments). You can choose any free port. To do that execute the following command from the command line:<​br>​    To start wallet JSON RPC API server you should specify a port on which server binds (additionally to standard wallet'​s arguments). You can choose any free port. To do that execute the following command from the command line:<​br>​
-   <​b>​prosus-wallet --wallet-file=example_wallet --pass=12345 --rpc-bind-port=16191</​b><​br>​+   <​b>​prosus-wallet --wallet-file example_wallet --pass 12345 --rpc-bind-port 16191</​b><​br>​
    ​Having done that you're ready to operate with the wallet through the following API URLs (e.g., your IP address/​domain address is pool.prosus.money):<​br>​    ​Having done that you're ready to operate with the wallet through the following API URLs (e.g., your IP address/​domain address is pool.prosus.money):<​br>​
  <​b>​http://​pool.prosus.money:​16191/​json_rpc<​br>​  <​b>​http://​pool.prosus.money:​16191/​json_rpc<​br>​
- http://​localhost:​18230/​json_rpc</​b><​br><​br>​+ http://​localhost:​16191/​json_rpc</​b><​br><​br>​
  <​b>​Available commands :</b>  <​b>​Available commands :</b>
  <​ul><​ul>​  <​ul><​ul>​
Línea 259: Línea 264:
 <h3> <h3>
 <a id="​user-content-get_payments"​ class="​anchor"​ href="#​get_payments"​ aria-hidden="​true"><​svg class="​octicon octicon-link"​ viewbox="​0 0 16 16" version="​1.1"​ width="​16"​ height="​16"​ aria-hidden="​true"><​path fill-rule="​evenodd"​ d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></​path></​svg></​a>​get_payments</​h3>​ <a id="​user-content-get_payments"​ class="​anchor"​ href="#​get_payments"​ aria-hidden="​true"><​svg class="​octicon octicon-link"​ viewbox="​0 0 16 16" version="​1.1"​ width="​16"​ height="​16"​ aria-hidden="​true"><​path fill-rule="​evenodd"​ d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></​path></​svg></​a>​get_payments</​h3>​
-<​p>​Receives all the payments with a corresponding payment_id that were sent to the wallet. This method is used to get the BCN payments for the 3rd party services. As Prosus.Money uses only one address to receive ​BCN deposits, a unique payment_id should be assigned and shown to each user. The method will return all the payments for this user.</​p>​+<​p>​Receives all the payments with a corresponding payment_id that were sent to the wallet. This method is used to get the xPR (prosus) ​payments for the 3rd party services. As Prosus.Money uses only one address to receive ​xPR deposits, a unique payment_id should be assigned and shown to each user. The method will return all the payments for this user.</​p>​
 <​p>​URL:</​p>​ <​p>​URL:</​p>​
 <​pre><​code>​ /json_rpc <​pre><​code>​ /json_rpc
Línea 314: Línea 319:
 <h3> <h3>
 <a id="​user-content-get_transfers"​ class="​anchor"​ href="#​get_transfers"​ aria-hidden="​true"><​svg class="​octicon octicon-link"​ viewbox="​0 0 16 16" version="​1.1"​ width="​16"​ height="​16"​ aria-hidden="​true"><​path fill-rule="​evenodd"​ d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></​path></​svg></​a>​get_transfers</​h3>​ <a id="​user-content-get_transfers"​ class="​anchor"​ href="#​get_transfers"​ aria-hidden="​true"><​svg class="​octicon octicon-link"​ viewbox="​0 0 16 16" version="​1.1"​ width="​16"​ height="​16"​ aria-hidden="​true"><​path fill-rule="​evenodd"​ d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></​path></​svg></​a>​get_transfers</​h3>​
-<​p>​Returns the list of all the wallet'​s incoming and outgoing transfers. This data is available starting from v.1.0.2 build. For the transfers created by simplewallet of previous versions this method returns not exact transfers amounts but the transaction amounts (transfer amount + change).</p>+<​p>​Returns the list of all the wallet'​s incoming and outgoing transfers.</​p>​
 <​p>​URL:</​p>​ <​p>​URL:</​p>​
 <​pre><​code>​ /json_rpc <​pre><​code>​ /json_rpc
api-wallet.1549144241.txt.gz · Última modificación: 2019/02/02 18:50 por YerkoBits