Prosus BrainChain

::: proof of knowledge :::

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

api-wallet [2018/12/31 00:01]
YerkoBits creado
api-wallet [2019/02/02 18:50] (actual)
YerkoBits texto definitivo
Línea 1: Línea 1:
-FIXME 
-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: 
  
-```+<​html>​ 
 +                    <!-- ARTICLE ​ --> 
 +<​div>​ 
 +<h1> Prosus-Wallet commands & JSON RPC API</​h1>​ 
 +</​div>​ 
 +</br>
  
- simplewallet ​--wallet-file=example_wallet.bin --pass=12345 --rpc-bind-port=32348 +                            <p> 
-``` +                                <​b>​General options:</​b><​br>​ 
-Having done that you're ready to operate with the wallet through the following API URLs (e.g., your IP address is 95.46.98.64): +  <​b>​--help</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Produce help message<​br>​ 
-``` +  <​b>​--version</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Output version information<​br>​ 
- http://95.46.98.64:32348/json_rpc +  <​b>​--config-file arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Specify configuration file 
- ​http://​localhost:​32348/json_rpc +<​br><​br>​ 
-``` +<​b>​Wallet options :</​b><​br>​ 
-## Available commands ​## +  <b>--wallet-file ​arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Use wallet <​arg><​br>​ 
- +  <​b>​--generate-new-wallet arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Generate new wallet and save it to <​arg><​br>​ 
-getbalance +  <​b>​--restore-deterministic-wallet</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Recover wallet using electrum-style mnemonic<​br>​ 
-transfer +  <​b>​--non-deterministic</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Creates non-deterministic (classic) view and spend keys<​br>​ 
-store +  <​b>​--mnemonic-seed arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Specify mnemonic seed for wallet recovery/​creation<​br>​ 
-reset +  <​b>​--password arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Wallet password<​br>​ 
-get_payments +  <​b>​--change-password arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Change wallet password and exit<​br>​ 
-get_transfers +  <​b>​--daemon-address arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Use daemon instance at <​host>:<​port><​br>​ 
-get_height +  <​b>​--daemon-host arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Use daemon instance at host <arg> instead of localhost<​br>​ 
-get_transaction +  <​b>​--daemon-port arg (=0)</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Use daemon instance at port <arg> instead of 18230<​br>​ 
-get_address +  <​b>​--command arg</​b><​br>​ 
-get_paymentid +  <​b>​--log-file arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Set the log file location<​br>​ 
-get_tx_key +  <​b>​--log-level arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Set the log verbosity level<​br>​ 
-query_key +  <​b>​--testnet</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Used to deploy test netsThe daemon must be launched with --testnet flag<​br>​ 
-sign_message +  <​b>​--reset</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Discard cache data and start synchronizing from scratch<​br>​ 
-verify_message +  <​b>​--rpc-bind-ip arg</​b>​ (=127.0.0.1)&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Specify IP to bind RPC server to.<​br>​ 
-change_password +  <​b>​--rpc-bind-port arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Starts wallet as RPC server for wallet operations, sets bind port for server.<​br>​ 
-estimate_fusion +  <​b>​--rpc-user arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Username to use with the RPC server. If empty, no server authorization will be done.<​br>​ 
-send_fusion +  <​b>​--rpc-password arg</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Password to use with the RPC server. If empty, no server authorization will be done.<​br>​ 
- +<​br>​ 
-Please note, there is no "​refresh"​ RPC method. RPC wallet refresh is performed automatically each 20 seconds. +<​b>​Commands :</​b><​br>​ 
- +  <​b>​address</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show current wallet public address<​br>​ 
- +  <​b>​balance</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show current wallet balance<​br>​ 
-### getbalance ### +  <​b>​bc_height</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show blockchain height<​br>​ 
- +  <​b>​exit</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Close wallet<​br>​ 
-Return balance. +  <​b>​export_keys</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show the secret keys of the opened wallet<​br>​ 
- +  <​b>​help</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show help<​br>​ 
-URL: +  <​b>​incoming_transfers</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show incoming transfers<​br>​ 
-``` +  <​b>​list_transfers</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show all known transfers<​br>​ 
- /json_rpc +  <​b>​outgoing_transfers</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Show outgoing transfers<​br>​ 
-``` +  <​b>​password</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Change password<​br>​ 
-Input:  +  <​b>​payment_id</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Generate random Payment ID<​br>​ 
-``` +  <​b>​payments</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​payments <​payment_id_1>​ [<​payment_id_2>​ ... <​payment_id_N>​] - Show payments <​payment_id_1>,​ ... <​payment_id_N><​br>​ 
- {+  <​b>​reset</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Discard cache data and start synchronizing from the start<​br>​ 
 +  <​b>​save</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Save wallet synchronized data<​br>​ 
 +  <​b>​set_log</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​set_log <​level>​ - Change current log level, <​level>​ is a number 0-4<​br>​ 
 +  <​b>​show_seed</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Get wallet recovery phrase (deterministic seed)<​br>​ 
 +  <​b>​sweep_dust</​b>&​nbsp;&​nbsp;&​nbsp;​=&​nbsp;&​nbsp;&​nbsp;​Sweep unmixable dust<​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>​ 
 +   <​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>​ 
 +   <​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> 
 + <b>http://pool.prosus.money:16191/json_rpc<br> 
 + http://​localhost:​18230/json_rpc</​b><​br><​br>​ 
 + <b>Available commands ​:</b> 
 + <​ul><​ul>​ 
 +<​li><​a href="#​user-content-getbalance">​getbalance</​a></​li>​ 
 +<​li><​a href="#​user-content-transfer">​transfer</​a></​li>​ 
 +<​li><​a href="#​user-content-store">​store</​a></​li>​ 
 +<​li><​a href="#​user-content-reset">​reset</​a></​li>​ 
 +<​li><​a href="#​user-content-get_payments">​get_payments</​a></​li>​ 
 +<​li><​a href="#​user-content-get_transfers">​get_transfers</​a></​li>​ 
 +<​li><​a href="#​user-content-get_height">​get_height</​a></​li>​ 
 +<​li><​a href="#​user-content-get_transaction">​get_transaction</​a></​li>​ 
 +<​li><​a href="#​user-content-get_address">​get_address</​a></​li>​ 
 +<​li><​a href="#​user-content-get_paymentid">​get_paymentid</​a></​li>​ 
 +<​li><​a href="#​user-content-get_tx_key">​get_tx_key</​a></​li>​ 
 +<​li><​a href="#​user-content-query_key">​query_key</​a></​li>​ 
 +<​li><​a href="#​user-content-sign_message">​sign_message</​a></​li>​ 
 +<​li><​a href="#​user-content-verify_message">​verify_message</​a></​li>​ 
 +<​li><​a href="#​user-content-change_password">​change_password</​a></​li>​ 
 +<​li><​a href="#​user-content-estimate_fusion">​estimate_fusion</​a></​li>​ 
 +<​li><​a href="#​user-content-send_fusion">​send_fusion</​a></​li>​ 
 +<br> 
 +<p>Please note, there is no "​refresh"​ RPC method. RPC wallet refresh is performed automatically each 20 seconds.</p> 
 +<h3> 
 +<a id="​user-content-getbalance" class="​anchor"​ href="#getbalance"​ 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>​getbalance</​h3>​ 
 +<p>Return balance.</p> 
 +<p>URL:</p> 
 +<​pre><​code> ​/json_rpc 
 +</​code></​pre>​ 
 +<p>Input:</p> 
 +<​pre><​code> ​{
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object", ​  ​ "​type":​ "​object", ​
     
Línea 59: Línea 103:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 77: Línea 120:
   }   }
  }  }
-``` +</​code></​pre>​ 
- +<h3> 
-### transfer ### +<a id="​user-content-transfer" class="​anchor"​ href="#transfer"​ 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>​transfer</​h3>​ 
- +<p>Transfer money to several destinations with specified fee, mixin ambiguity degree, and unlock time.</p> 
-Transfer money to several destinations with specified fee, mixin ambiguity degree, and unlock time. +<p>Please note: fee param is a mandatory and should not be less than current minimal fee which can be obtained from node.</p> 
- +<p>URL:</p> 
-Please note: fee param is a mandatory and should not be less than current minimal fee which can be obtained from node. +<​pre><​code> ​/json_rpc 
- +</​code></​pre>​ 
-URL: +<p>Input:</p> 
-``` +<​pre><​code> ​{
- /json_rpc +
-``` +
-Input: +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 135: Línea 173:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 153: Línea 190:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### store ### +<​h3>​ 
- +<a id="​user-content-store" class="​anchor"​ href="#store" 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>​store</​h3>​ 
-Store wallet data. +<p>Store wallet data.</p> 
- +<p>URL:</p> 
-URL: +<​pre><​code> ​ /​json_rpc 
-``` +</​code></​pre>​ 
-  /​json_rpc +<p>Input:</p> 
-``` +<​pre><​code> ​{
-Input:  +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 179: Línea 213:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output:  +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
  ​ "​properties"​ : {}  ​ "​properties"​ : {}
  }  }
-``` +</​code></​pre>​ 
-### reset ### +<​h3>​ 
- +<a id="​user-content-reset" class="​anchor"​ href="#reset" 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>​reset</​h3>​ 
-Erases simplewallet'​s internal state but keeps safe the wallet.bin. The method should be used to re-synchronize the wallet from scratch. The next refresh (which is automatically called each 20 seconds) will update the simplewallet state. +<p>Erases simplewallet'​s internal state but keeps safe the wallet.bin. The method should be used to re-synchronize the wallet from scratch. The next refresh (which is automatically called each 20 seconds) will update the simplewallet state.</p> 
- +<p>URL:</p> 
-URL: +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input:</p> 
-``` +<​pre><​code> ​{
-Input: +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 216: Línea 246:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
  ​ "​properties"​ : {}  ​ "​properties"​ : {}
  }  }
-``` +</​code></​pre>​ 
- +<h3> 
-### get_payments ### +<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> 
-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 Karbowanec ​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>URL:</p> 
- +<​pre><​code> ​/json_rpc 
-URL: +</​code></​pre>​ 
-``` +<p>Input:</p> 
- /json_rpc +<​pre><​code> ​{
-``` +
-Input:  +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object", ​  ​ "​type":​ "​object", ​
    
Línea 258: Línea 283:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output:  +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
    
Línea 287: Línea 311:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### 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>​ 
-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>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>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input:</p> 
-``` +<​pre><​code> ​{
-Input: +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 313: Línea 334:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
    
Línea 360: Línea 380:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### get_height ### +<​h3>​ 
- +<a id="​user-content-get_height" class="​anchor"​ href="#get_height"​ 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_height</​h3>​ 
-Returns the last top known block height for simplewallet. This method can be used to verify that simplewallet is correctly synchronized. +<p>Returns the last top known block height for simplewallet. This method can be used to verify that simplewallet is correctly synchronized.</p> 
- +<p>URL:</p> 
-URL: +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input:</p> 
-``` +<​pre><​code> ​{
-Input: +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 386: Línea 403:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for transfer method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for transfer method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 401: Línea 417:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### get_transaction ### +<​h3>​ 
- +<a id="​user-content-get_transaction" class="​anchor"​ href="#get_transaction"​ 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_transaction</​h3>​ 
-Returns the transaction details.  +<p>Returns the transaction details.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{  ​
-Input example: +
-``` +
-{  ​+
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
    "​id":"​test",​    "​id":"​test",​
    "​method":"​get_transaction",​    "​method":"​get_transaction",​
   "​params":​{  ​   "​params":​{  ​
-      "​tx_hash":"​f86ef58c98c724c2261f3eb009b47e475472f75d3b4b2ff0fc749d607367090d"+      "​tx_hash":"​b0285cacb20ec402d56e4b87f629afc5ee6b19cf7a790a226173cb03c2615a31"
    }    }
  }  }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​id":"​test",​    "​id":"​test",​
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
Línea 429: Línea 441:
       "​destinations":​[       "​destinations":​[
          {          {
-           "​address":"​Kcwr4Awjn7QefxbAEvHSAcTrVbhzYukfmbDvwWkrDhjFXe1FVUj5ggxCrEv4w2zv6iVZgoF4v7b3cNAbaU3LKQGS9EU9KAd",+           "​address":"​Prosus2uvk3GCQ2SSHd3w9RjKRjkcHPJL7mKSy25twnH5nxSxehzad7WSUTfZob83dU59K8ojrd3PidXSkMDfrj1KhkJ4Lpt5e14A",
             "​amount":​2010542676062             "​amount":​2010542676062
          },          },
          {          {
-            "​address":"​Kdev1L9V5ow3cdKNqDpLcFFxZCqu5W2GE9xMKewsB2pUXWxcXvJaUWHcSrHuZw91eYfQFzRtGfTemReSSMN4kE445i6Etb3",+            "​address":"​Prosus1EFCREFuMHPwWTJ217xsTcEdgqqTBsnuvZtk6ujYnXBkwHSNHAgH3ajVGRJLTfSAKLRxDH4EdVNQtYcNJM97ycCSJCSwA4pA",
             "​amount":​57000000000             "​amount":​57000000000
          }          }
       ],       ],
       "​transaction_details":​{       "​transaction_details":​{
-         "​address":"​Kcwr4Awjn7QefxbAEvHSAcTrVbhzYukfmbDvwWkrDhjFXe1FVUj5ggxCrEv4w2zv6iVZgoF4v7b3cNAbaU3LKQGS9EU9KAd",+         "​address":"​Prosus23GCQ2SSHd3w9RjKRjkcHPJL7mKSyuvk25twnH5nxSxehzad7WSUTfZob83dU59K8ojrd3PidXSkMDfrj1KhkJ4Lpt5e14",
          "​amount":​2124542676062,​          "​amount":​2124542676062,​
          "​blockIndex":​271652,​          "​blockIndex":​271652,​
Línea 446: Línea 458:
          "​paymentId":"",​          "​paymentId":"",​
          "​time":​1536706367,​          "​time":​1536706367,​
-         "​transactionHash":"​f86ef58c98c724c2261f3eb009b47e475472f75d3b4b2ff0fc749d607367090d", +         "​transactionHash":"​b0285cacb20ec402d56e4b87f629afc5ee6b19cf7a790a226173cb03c2615a31", 
-         "​txKey":"​01f0eede5679da2c9cfcd06fb1961d64316e0d4dc54a308247319cb25220bf9503",+         "​txKey":"​d2854e0414154881005254e6a80f94db7248712a7f4e212c1100519a673a48a3",
          "​unlockTime":​0          "​unlockTime":​0
       }       }
    }    }
 } }
-``` +</​code></​pre>​ 
-### get_address ### +<​h3>​ 
- +<a id="​user-content-get_address" class="​anchor"​ href="#get_address"​ 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_address</​h3>​ 
-Returns the wallet'​s public address.  +<p>Returns the wallet'​s public address.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{  ​
-Input example: +
-``` +
-{  ​+
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
    "​id":"​test",​    "​id":"​test",​
Línea 470: Línea 479:
    }    }
  }  }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​id":"​test",​    "​id":"​test",​
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
    "​result":​{    "​result":​{
-      "​address":"​KaqCQAbx3BSKKv7ED98oQP9QSP3igqgo47hPYZ8q6KZyUY6GnDaQkh9WbVR4DxvmCq8mZcKPg3wfWFJQ5CsyrxPqKcXC3rx"+      "​address":"​Prosus1uvk3GCQ2SSHd3w9RjKRjkcHPJL7mKSy25twnH5nxSxehzad7WSUTfZob83dU59K8ojrd3PidXSkMDfrj1KhkJ4Lpt5e14"
    }    }
 } }
-``` +</​code></​pre>​ 
-### get_paymentid ### +<​h3>​ 
- +<a id="​user-content-get_paymentid" class="​anchor"​ href="#get_paymentid"​ 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_paymentid</​h3>​ 
-Returns the new randomly generated Payment ID. +<p>Returns the new randomly generated Payment ID.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{  ​
-Input example: +
-``` +
-{  ​+
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
    "​id":"​test",​    "​id":"​test",​
Línea 498: Línea 503:
    }    }
  }  }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​id":"​test",​    "​id":"​test",​
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
Línea 508: Línea 512:
    }    }
 } }
-``` +</​code></​pre>​ 
-### get_tx_key ### +<​h3>​ 
- +<a id="​user-content-get_tx_key" class="​anchor"​ href="#get_tx_key"​ 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_tx_key</​h3>​ 
-Returns the transaction'​s secret key if it is stored in wallet'​s cache; which can be used to prove that you paid the receiver. The transaction ID and the receiver'​s public address are also needed as a parameter. +<p>Returns the transaction'​s secret key if it is stored in wallet'​s cache; which can be used to prove that you paid the receiver. The transaction ID and the receiver'​s public address are also needed as a parameter.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{
-Input example: +
-``` +
-{+
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
   "​id":​ "​test",​   "​id":​ "​test",​
Línea 527: Línea 528:
   }   }
 } }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​id":"​test",​    "​id":"​test",​
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
Línea 537: Línea 537:
    }    }
 } }
-``` +</​code></​pre>​ 
-### query_key ### +<​h3>​ 
- +<a id="​user-content-query_key" class="​anchor"​ href="#query_key"​ 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>​query_key</​h3>​ 
-Returns the wallets private keys. Key type should be passed in params. Available key types: ​`paperwalletand `mnemonic`+<p>Returns the wallets private keys. Key type should be passed in params. Available key types: ​<​code>​paperwallet</​code> ​and <​code>​mnemonic</​code>​.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{
-Input example: +
-``` +
-{+
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
   "​id":​ "​test",​   "​id":​ "​test",​
Línea 556: Línea 553:
   }   }
 } }
-``` +</​code></​pre>​ 
-Error output example: +<p>Error output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​error":​{    "​error":​{
       "​code":​-1,​       "​code":​-1,​
Línea 567: Línea 563:
    "​jsonrpc":"​2.0"​    "​jsonrpc":"​2.0"​
 } }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
    "​id":"​test",​    "​id":"​test",​
    "​jsonrpc":"​2.0",​    "​jsonrpc":"​2.0",​
Línea 577: Línea 572:
    }    }
 } }
-``` +</​code></​pre>​ 
-### estimate_fusion ### +<​h3>​ 
- +<a id="​user-content-estimate_fusion" class="​anchor"​ href="#estimate_fusion"​ 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>​estimate_fusion</​h3>​ 
-Returns the fusion ready outputs count. Parameter ​`thresholdshould be passed with threshold amount to optimize. If it is not passed it will estimate with default dust threshold. +<p>Returns the fusion ready outputs count. Parameter ​<​code>​threshold</​code> ​should be passed with threshold amount to optimize. If it is not passed it will estimate with default dust threshold.</p> 
- +<p>URL:</p> 
-URL:  +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input example:</p> 
-``` +<​pre><​code>​{
-Input example: +
-``` +
-{+
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
   "​id":​ "​test",​   "​id":​ "​test",​
   "​method":​ "​estimate_fusion",​   "​method":​ "​estimate_fusion",​
   "​params":​ {   "​params":​ {
-    "​threshold":​1000000000000+    "​threshold":​100000000
   }   }
 } }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
   "​id":​ "​test",​   "​id":​ "​test",​
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
Línea 606: Línea 597:
   }   }
 } }
-``` +</​code></​pre>​ 
-### send_fusion ### +<​h3>​ 
- +<a id="​user-content-send_fusion" class="​anchor"​ href="#send_fusion"​ 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>​send_fusion</​h3>​ 
-Optimize wallet (fuse many small outputs into fewer larger ones) to be able to send large amounts in a single transaction as with smaller inputs count its size will be smaller. +<p>Optimize wallet (fuse many small outputs into fewer larger ones) to be able to send large amounts in a single transaction as with smaller inputs count its size will be smaller.</p> 
- +<p>URL:</p> 
-URL: +<​pre><​code> ​/json_rpc 
-``` +</​code></​pre>​ 
- /json_rpc +<p>Input:</p> 
-``` +<​pre><​code> ​{
-Input: +
-``` +
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for send fusion transaction method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for send fusion transaction method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 645: Línea 633:
   }   }
  }  }
-``` +</​code></​pre>​ 
-Output: +<p>Output:</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​  ​ "​$schema":​ "​http://​json-schema.org/​draft-04/​schema#",​
- ​ "​title":​ "Karbowanec ​wallet api",​ + ​ "​title":​ "Prosus.Money ​wallet api",​ 
- ​ "​description":​ "​Schema for send fusion transaction method in Karbowanec ​wallet",​+ ​ "​description":​ "​Schema for send fusion transaction method in Prosus.Money ​wallet",​
  ​ "​type":​ "​object",​  ​ "​type":​ "​object",​
     
Línea 660: Línea 647:
   }   }
  }  }
-``` +</​code></​pre>​ 
- +<h2> 
- +<a id="​user-content-examples"​ class="​anchor"​ href="#examples"​ 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>​Examples</h2> 
- +<h3> 
-#Examples ​## +<a id="​user-content-getbalance-1"​ class="​anchor"​ href="#getbalance-1" 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>​getbalance</​h3>​ 
- +<​pre><​code> ​{
-### getbalance ​### +
-``` +
- {+
  ​ "​jsonrpc":​ "​2.0", ​  ​ "​jsonrpc":​ "​2.0", ​
  ​ "​method":​ "​getbalance", ​  ​ "​method":​ "​getbalance", ​
  ​ "​params":​ {}  ​ "​params":​ {}
  }  }
-``` +</​code></​pre>​ 
-### transfer ### +<​h3>​ 
- +<a id="​user-content-transfer-1" class="​anchor"​ href="#transfer-1"​ 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>​transfer</​h3>​ 
-Please note, payment_id is an optional argument and can be left out. +<p>Please note, payment_id is an optional argument and can be left out.</p> 
-``` +<​pre><​code> ​{
- {+
  ​ "​jsonrpc":"​2.0",​  ​ "​jsonrpc":"​2.0",​
  ​ "​method":"​transfer",​  ​ "​method":"​transfer",​
Línea 685: Línea 668:
   {   {
  ​ "​amount":​11111,​  ​ "​amount":​11111,​
- ​ "​address":"​KfXkT5VmdqmA7bWqSH37p87hSXBdTpTogN4mGHPARUSJaLse6jbXaVbVkLs3DwcmuD88xfu835Zvh6qBPCUXw6CHK8koDCt"+ ​ "​address":"​Prosus1uvk3GCQ2SSHd3w9RjKRjkcHPJL7mKSy25twnH5nxSxehzad7WSUTfZob83dU59K8ojrd3PidXSkMDfrj1KhkJ4Lpt5e14"
   },   },
   {   {
  ​ "​amount":​22222,​  ​ "​amount":​22222,​
- ​ "​address":"​KfXkT5VmdqmA7bWqSH37p87hSXBdTpTogN4mGHPARUSJaLse6jbXaVbVkLs3DwcmuD88xfu835Zvh6qBPCUXw6CHK8koDCt"+ ​ "​address":"​Prosus2GCQ2SSHd3w9RjKRjkcHPJL7mKSy25twnH5nuvk3xSxehzad7WSUTfZob83dU59K8ojrd3PidXSkMDfrj1KhkJ4Lpt5e14"
   }   }
   ],   ],
Línea 698: Línea 681:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### store ### +<​h3>​ 
-``` +<a id="​user-content-store-1"​ class="​anchor"​ href="#store-1" 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>​store</​h3>​ 
- {+<​pre><​code> ​{
  ​ "​jsonrpc":​ "​2.0", ​  ​ "​jsonrpc":​ "​2.0", ​
  ​ "​method":​ "​store", ​  ​ "​method":​ "​store", ​
  ​ "​params":​ {}  ​ "​params":​ {}
  }  }
-``` +</​code></​pre>​ 
-### reset ### +<​h3>​ 
-``` +<a id="​user-content-reset-1"​ class="​anchor"​ href="#reset-1" 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>​reset</​h3>​ 
- {+<​pre><​code> ​{
  ​ "​jsonrpc":​ "​2.0", ​  ​ "​jsonrpc":​ "​2.0", ​
  ​ "​method":​ "​reset", ​  ​ "​method":​ "​reset", ​
  ​ "​params":​ {}  ​ "​params":​ {}
  }  }
-``` +</​code></​pre>​ 
-### get_payments ​### +<​h3>​ 
-``` +<a id="​user-content-get_payments-1"​ class="​anchor"​ href="#​get_payments-1" 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>​ 
- {+<​pre><​code> ​{
  ​ "​jsonrpc":"​2.0",​  ​ "​jsonrpc":"​2.0",​
  ​ "​method":"​get_payments",​  ​ "​method":"​get_payments",​
Línea 724: Línea 707:
   }   }
  }  }
-``` +</​code></​pre>​ 
-### get_transfers ​### +<​h3>​ 
-``` +<a id="​user-content-get_transfers-1"​ class="​anchor"​ href="#​get_transfers-1" 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>​ 
- {+<​pre><​code> ​{
  ​ "​jsonrpc":​ "​2.0", ​  ​ "​jsonrpc":​ "​2.0", ​
  ​ "​method":​ "​get_transfers", ​  ​ "​method":​ "​get_transfers", ​
  ​ "​params":​ {}  ​ "​params":​ {}
  }  }
-``` +</​code></​pre>​ 
-### get_height ​### +<​h3>​ 
-``` +<a id="​user-content-get_height-1"​ class="​anchor"​ href="#get_height-1" 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_height</​h3>​ 
- {+<​pre><​code> ​{
  ​ "​jsonrpc":​ "​2.0", ​  ​ "​jsonrpc":​ "​2.0", ​
  ​ "​method":​ "​get_height", ​  ​ "​method":​ "​get_height", ​
  ​ "​params":​ {}  ​ "​params":​ {}
  }  }
-``` +</​code></​pre>​ 
-### send_fusion ​### +<​h3>​ 
- +<a id="​user-content-send_fusion-1"​ class="​anchor"​ href="#​send_fusion-1" 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>​send_fusion</​h3>​ 
-Input example: +<p>Input example:</p> 
-``` +<​pre><​code>​{
-{+
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
   "​id":​ "​test",​   "​id":​ "​test",​
   "​method":​ "​send_fusion",​   "​method":​ "​send_fusion",​
   "​params":​ {   "​params":​ {
-    "​threshold":​1000000000000,+    "​threshold":​100000000,
     "​mixin":​3,​     "​mixin":​3,​
     "​unlock_time":​0     "​unlock_time":​0
   }   }
 } }
-``` +</​code></​pre>​ 
-Output example: +<p>Output example:</p> 
-``` +<​pre><​code>​{
-{+
   "​id":​ "​test",​   "​id":​ "​test",​
   "​jsonrpc":​ "​2.0",​   "​jsonrpc":​ "​2.0",​
Línea 765: Línea 746:
   }   }
 } }
-```+</​code></​pre>​ 
 +                            ​
  
 +                    <!-- END ARTICLE -->
 +</​html>​
  
api-wallet.txt · Última modificación: 2019/02/02 18:50 por YerkoBits