mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2026-04-25 21:59:22 +00:00
2.0 KiB
2.0 KiB
Qortal ARRR Lightwallet CLI Integration Notes
This fork tracks Pirate's current lightwalletd gRPC protocol (pirate.wallet.sdk.rpc) and drops the older
cash.z.wallet.sdk.rpc namespace used by lightd.pirate.black.
Known Mainnet Lightwalletd Servers (new proto)
- https://lightd1.pirate.black:443
- https://piratelightd1.cryptoforge.cc:443
- https://piratelightd2.cryptoforge.cc:443
JSON Schema Changes (Core/JNI parsers)
syncstatus
Legacy key changes:
- Removed:
syncing(replaced byin_progress) synced_blocksandtotal_blocksare still emitted, but only while syncing
New fields when syncing:
sync_id, in_progress, last_error, start_block, end_block,
synced_blocks, trial_decryptions_blocks, txn_scan_blocks,
total_blocks, batch_num, batch_total
New fields when not syncing:
sync_id, in_progress, last_error, scanned_height
list
- Always includes
incoming_metadataandoutgoing_metadata. - Adds
incoming_metadata_changeandoutgoing_metadata_change. - Includes
unconfirmedonly for unconfirmed transactions (omitted for confirmed). - Mempool entries are no longer appended to the list output; unconfirmed txs are tracked in wallet state instead.
amountandfeenow account for both shielded and transparent totals.
balance
Keys are unchanged, but with t-address support disabled by default:
t_addressesis empty andtbalanceis zero unless t-addresses are explicitly added.
P2SH HTLC Commands
sendp2shis restored and expectsscriptto be Base58-encoded output script bytes (typicallyOP_RETURN+OP_PUSHDATA1+ redeem script). The script output is added once per recipient, matching prior Qortal behavior.redeemp2shis restored and expects Base58-encoded raw bytes forscript,txid,secret(empty for refund), andprivkey(32-byte raw). It spends output index 0 without validating funding output value or script hash.senddoes not acceptscript; usesendp2shfor HTLC funding.