Class: Counterparty::Execute

Inherits:
CounterResource show all
Defined in:
lib/counterparty/resources.rb

Overview

An object that executes contract code in the blockchain

Instance Attribute Summary collapse

Attributes inherited from CounterResource

#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes

Method Summary

Methods inherited from CounterResource

#==, api_name, bitcoin, find, #initialize, #save!, to_create_request, to_get_request, #to_raw_tx, #to_signed_tx

Constructor Details

This class inherits a constructor from Counterparty::CounterResource

Instance Attribute Details

#contract_idObject

(integer) the contract ID of the contract to be executed



724
725
726
# File 'lib/counterparty/resources.rb', line 724

def contract_id
  @contract_id
end

#gaspriceObject

(integer) the price of gas



718
719
720
# File 'lib/counterparty/resources.rb', line 718

def gasprice
  @gasprice
end

#payload_hexObject

(string) data to be provided to the contract (returned by serpent encode_datalist)



730
731
732
# File 'lib/counterparty/resources.rb', line 730

def payload_hex
  @payload_hex
end

#sourceObject

(string) the source address



715
716
717
# File 'lib/counterparty/resources.rb', line 715

def source
  @source
end

#startgasObject

(integer) the maximum quantity of {} to be used to pay for the execution (satoshis



721
722
723
# File 'lib/counterparty/resources.rb', line 721

def startgas
  @startgas
end

#valueObject

(integer) quantity to be transfered to the contract (satoshis)



727
728
729
# File 'lib/counterparty/resources.rb', line 727

def value
  @value
end