Method: Steem::Marshal#transaction
- Defined in:
- lib/steem/marshal.rb
#transaction(options = {}) ⇒ Object
183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/steem/marshal.rb', line 183 def transaction( = {}) trx = [:trx] || Transaction.new trx.ref_block_num = uint16 trx.ref_block_prefix = uint32 trx.expiration = point_in_time trx.operations = operations trx rescue => e raise DeserializationError.new("Transaction failed\nOriginal serialized bytes:\n[#{hex[0..(@cursor * 2) - 1]}]#{hex[((@cursor) * 2)..-1]}", e) end |