Litecoin
submitpackage80 额度
Submit a package of raw transactions to local mempool
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| package | string[] | Hex-encoded raw transactions: unconfirmed parents first and the child last. Parents must not depend on each other. |
| maxfeerate | number | string | Reject transactions paying more than this feerate, in BTC/kvB. Default is 0.10; 0 accepts any feerate. (可选) |
| maxburnamount | number | string | Reject if more than this many BTC go to provably unspendable outputs. Default is 0. (可选) |
返回值
类型
Object
package_msg (success or a failure reason), tx-results (object keyed by wtxid with txid, vsize, fees { base, effective-feerate, effective-includes } or error, optional other-wtxid) and optional replaced-transactions (txids).
代码示例
curl https://holy-burned-sky-litecoin-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…"
]
]
}'