Class: Counterparty::Execute
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Execute
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that executes contract code in the blockchain
Instance Attribute Summary collapse
-
#contract_id ⇒ Object
(integer) the contract ID of the contract to be executed.
-
#gasprice ⇒ Object
(integer) the price of gas.
-
#payload_hex ⇒ Object
(string) data to be provided to the contract (returned by serpent encode_datalist).
-
#source ⇒ Object
(string) the source address.
-
#startgas ⇒ Object
(integer) the maximum quantity of {} to be used to pay for the execution (satoshis.
-
#value ⇒ Object
(integer) quantity to be transfered to the contract (satoshis).
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_id ⇒ Object
(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 |
#gasprice ⇒ Object
(integer) the price of gas
718 719 720 |
# File 'lib/counterparty/resources.rb', line 718 def gasprice @gasprice end |
#payload_hex ⇒ Object
(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 |
#source ⇒ Object
(string) the source address
715 716 717 |
# File 'lib/counterparty/resources.rb', line 715 def source @source end |
#startgas ⇒ Object
(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 |
#value ⇒ Object
(integer) quantity to be transfered to the contract (satoshis)
727 728 729 |
# File 'lib/counterparty/resources.rb', line 727 def value @value end |