ecash-lib
Version:
Library for eCash transaction building
40 lines • 1.59 kB
JavaScript
;
// Copyright (c) 2024 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
Object.defineProperty(exports, "__esModule", { value: true });
exports.P2PKH_OUTPUT_SIZE = exports.MAX_TX_SERSIZE = exports.OP_RETURN_MAX_BYTES = exports.COINBASE_MATURITY = exports.XEC_TOKEN_AWARE_DERIVATION_PATH = exports.DEFAULT_FEE_SATS_PER_KB = exports.DEFAULT_DUST_SATS = void 0;
/** Default dust limit on the eCash network. */
exports.DEFAULT_DUST_SATS = 546n;
/** Default fee per kB on the eCash network. */
exports.DEFAULT_FEE_SATS_PER_KB = 1000n;
/** Derivation path for non-HD token aware XEC wallets, like ecash-wallet or Cashtab */
exports.XEC_TOKEN_AWARE_DERIVATION_PATH = `m/44'/1899'/0'/0/0`;
/**
* Confirmations required before coinbase utxos
* are spendable
*
* On eCash, coinbase utxos may be
*
* - mining rewards
* - staking rewards
* - IFP rewards
*/
exports.COINBASE_MATURITY = 100;
/**
* As of May 5, 2025, the max bytes permitted in an OP_RETURN
* output on the eCash (XEC) network
*
* NB SLP spec works within this limit, ALP spec supports actions
* beyond this limit. For now, ecash-wallet is written accounting
* for this limit in ALP token action validation.
*/
exports.OP_RETURN_MAX_BYTES = 223;
/**
* The node will throw an error on broadcasting a tx
* with serSize() greater than this value in bytes
*/
exports.MAX_TX_SERSIZE = 100000;
// The size in bytes of a p2pkh output
exports.P2PKH_OUTPUT_SIZE = 34;
//# sourceMappingURL=consts.js.map