lib/bitcoin/protocol/block.rb
# convert header to json representation.
convert header to json representation.
convert header to json representation .
def header_to_json(options = { space: '' })
        h = to_hash
        %w[tx mrkl_tree].each { |k| h.delete(k) }
        JSON.pretty_generate(h, options)
      end
def header_to_json ( options = { space : '' } ) h = to_hash %w[ tx mrkl_tree ] . each { | k | h . delete ( k ) } JSON . pretty_generate ( h , options ) end
convert header to json representation.
convert header to json representation .
options
<not_specific>