================== Protocol Methods ================== blockchain.address.get_balance ============================== Return the confirmed and unconfirmed balances of a Bitcoin Cash address. **Signature** .. function:: blockchain.address.get_balance(address, [token_filter]) .. versionadded:: 1.4.3 .. versionchanged:: 1.5.0 Added optional arg: *token_filter* (BCH only) * *address* The address as a Cash Address string (with or without prefix, case insensitive). Some server implementations do not support Legacy (base58) addresses and are not required to do so by this specification. However, Fulcrum does support both Legacy and Cash Address encodings. * *token_filter* (optional, BCH only) A string, one of: :const:`"include_tokens"`, :const:`"exclude_tokens"` or :const:`"tokens_only"`. This controls whether the balance also includes :ref:`CashToken `-containing UTXOs, whether to exclude them, or whether to return the balance for :ref:`CashToken ` UTXOs only, respectively. The default is :const:`"exclude_tokens"` if the client :ref:`negotiated version ` `1.4.x` or below with the server. If the client :ref:`negotiated version ` `1.5.0` or above, the default is :const:`"include_tokens"`. **Result** See :func:`blockchain.scripthash.get_balance`. blockchain.scripthash.get_first_use =================================== Retrieve information on the first occurrence of a Bitcoin Cash address on the block chain. **Signature** .. function:: blockchain.address.get_first_use(address) .. versionadded:: 1.5.2 *address* The address as a Cash Address string (with or without prefix, case insensitive). Some server implementations do not support Legacy (base58) addresses and are not required to do so by this specification. However, Fulcrum does support both Legacy and Cash Address encodings. **Result** As for :func:`blockchain.scripthash.get_first_use`. blockchain.address.get_history ============================== Return the confirmed and unconfirmed history of a Bitcoin Cash address. **Signature** .. function:: blockchain.address.get_history(address, from_height=0, to_height=-1) .. versionadded:: 1.4.3 .. versionchanged:: 1.5.1 Allow pagination of history (added from_height, to_height) * *address* The address as a Cash Address string (with or without prefix, case insensitive). Some server implementations do not support Legacy (base58) addresses and are not required to do so by this specification. However, Fulcrum does support both Legacy and Cash Address encodings. * *from_height* The first block height (inclusive) of the interval the client is interested in. A non-negative integer. Optional. * *to_height* The last block height (exclusive) of the interval the client is interested in. A non-negative integer, or ``-1``. Optional. A value of ``-1`` means that the interval extends to the chaintip and also includes unconfirmed/mempool transactions (otherwise mempool txs are not included). ``from_height <= to_height`` must hold (for the purposes of this inequality and others here, treat a value of ``-1`` as infinity). **Result** As for :func:`blockchain.scripthash.get_history`. blockchain.address.get_mempool ============================== Return the unconfirmed transactions of a Bitcoin Cash address. **Signature** .. function:: blockchain.address.get_mempool(address) .. versionadded:: 1.4.3 * *address* The address as a Cash Address string (with or without prefix, case insensitive). Some server implementations do not support Legacy (base58) addresses and are not required to do so by this specification. However, Fulcrum does support both Legacy and Cash Address encodings. **Result** As for :func:`blockchain.scripthash.get_mempool`. blockchain.address.get_scripthash ================================= Translate a Bitcoin Cash address to a :ref:`script hash