Zcash
submitpackage8 Credits
Übermittelt ein Paket von Rohtransaktionen an den lokalen Mempool
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| package | string[] | Hexkodierte Rohtransaktionen: unbestätigte Parents zuerst und das Child zuletzt. Parents dürfen nicht voneinander abhängen. |
| maxfeerate | number | string | Transaktionen ablehnen, die mehr als diese Feerate zahlen, in BTC/kvB. Standard ist 0.10; 0 akzeptiert jede Feerate. (optional) |
| maxburnamount | number | string | Ablehnen, wenn mehr als diese Menge BTC an nachweislich nicht ausgebbare Outputs geht. Standard ist 0. (optional) |
Rückgabewert
Typ
Object
package_msg (success oder ein Fehlergrund), tx-results (nach wtxid geordnetes Objekt mit txid, vsize, fees { base, effective-feerate, effective-includes } oder error, optional other-wtxid) und optional replaced-transactions (txids).
Codebeispiele
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "submitpackage",
"params": [
[
"0200000001…",
"0200000001…"
]
]
}'