Class: HelloBlock::Transaction

Inherits:
Object
  • Object
show all
Extended by:
Query
Includes:
APIParameters
Defined in:
lib/helloblock/resources/transaction.rb

Constant Summary

Constants included from APIParameters

APIParameters::API_PARAMETERS

Constants included from Endpoints

Endpoints::ENDPOINTS

Class Method Summary collapse

Methods included from Query

[], []=, default_query, determine_parent_resource, find, inspect, last, offset, parent_class, query, to_hash, where

Methods included from Endpoints

#base_url, #version_path

Class Method Details

.create(raw_tx_hex) ⇒ Object



9
10
11
12
13
# File 'lib/helloblock/resources/transaction.rb', line 9

def self.create(raw_tx_hex)
  api_parameter = API_PARAMETERS[:propagate]
  query[:params][api_parameter] = raw_tx_hex
  self
end