JSON-RPC sendmany

Z Poznámkový blok
Verze z 29. 12. 2018, 19:47, kterou vytvořil Tydyt (diskuse | příspěvky) (Založena nová stránka s textem „ sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode") Send multiple times. Amounts…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Přejít na: navigace, hledání
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")

Send multiple times. Amounts are double-precision floating point numbers.

Arguments:
1. "fromaccount"         (string, required) DEPRECATED. The account to send the funds from. Should be "" for the default account
2. "amounts"             (string, required) A json object with addresses and amounts
    {
      "address":amount   (numeric or string) The litecoin address is the key, the numeric amount (can be string) in LTC is the value
      ,...
    }
3. minconf               (numeric, optional, default=1) Only use the balance confirmed at least this many times.
4. "comment"             (string, optional) A comment
5. subtractfeefrom       (array, optional) A json array with addresses.
                           The fee will be equally deducted from the amount of each selected address.
                           Those recipients will receive less litecoins than you enter in their corresponding amount field.
                           If no addresses are specified here, the sender pays the fee.
    [
      "address"          (string) Subtract fee from this address
      ,...
    ]
6. replaceable           (boolean, optional) Allow this transaction to be replaced by a transaction with higher fees via BIP 125
7. conf_target           (numeric, optional) Confirmation target (in blocks)
8. "estimate_mode"       (string, optional, default=UNSET) The fee estimate mode, must be one of:
       "UNSET"
       "ECONOMICAL"
       "CONSERVATIVE"

Result:
"txid"                   (string) The transaction id for the send. Only 1 transaction is created regardless of 
                                    the number of addresses.

Examples:

Send two amounts to two different addresses:
> litecoin-cli sendmany "" "{\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\":0.01,\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\":0.02}"

Send two amounts to two different addresses setting the confirmation and comment:
> litecoin-cli sendmany "" "{\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\":0.01,\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\":0.02}" 6 "testing"

Send two amounts to two different addresses, subtract fee from amount:
> litecoin-cli sendmany "" "{\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\":0.01,\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\":0.02}" 1 "" "[\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\",\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\"]"


sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")

Poslat několikrát. Částky jsou čísla s dvojitou přesností s pohyblivou čárkou.

Argumenty:
1. "odúčtování"    (požadovaný řetězec) DEPRECATED. Účet, ze kterého chcete peníze odeslat. Měla by být "" pro výchozí účet
2. "částky"        (požadovaný řetězec) Objekt json s adresami a částkami
     {{
       "adresa": částka (číselná nebo řetězec) Adresu litecoin je klíč, číselné množství (může být řetězec) v LTC je hodnota
       , ...
     }}
3. minconf         (numerická, volitelná, výchozí = 1) Použijte pouze váhu potvrzenou alespoň tolikrát.
4. "komentář"      (řetězec, nepovinný) Komentář
5. subtractfeefrom (pole, volitelně) json pole s adresami.
                          Poplatek bude rovnoměrně odečten od částky každé vybrané adresy.
                          Tito příjemci obdrží méně písmen, než zadáte do příslušného pole.
                          Není-li zadána žádná adresa, odesílatel zaplatí poplatek.
     [
       "adresa"    (řetězec) Od této částky odečtete poplatek
       , ...
     ]
6. Vyměnitelný     (boolean, volitelný) Umožnit, aby byla tato transakce nahrazena transakcí s vyššími poplatky prostřednictvím BIP 125
7. conf_target     (číselný, volitelný) Cíl pro potvrzení (v blocích)
8. "odhad_mod"     (řetězec, nepovinný, výchozí = UNSET) Režim odhadu poplatku musí být jedním z následujících způsobů:
        "UNSET"
        "EKONOMICKÝ"
        "KONZERVATIVNÍ"
Výsledek:
"txid" (řetězec) ID transakce pro odesílání. Pouze jedna transakce je vytvořena bez ohledu na to
                                    počet adres.


Zpět na Qt peněženku - JSON-RPC