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, find, #initialize, #save!, to_create_request, to_do_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



705
706
707
# File 'lib/counterparty/resources.rb', line 705

def contract_id
  @contract_id
end

#gaspriceObject

(integer) the price of gas



699
700
701
# File 'lib/counterparty/resources.rb', line 699

def gasprice
  @gasprice
end

#payload_hexObject

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



711
712
713
# File 'lib/counterparty/resources.rb', line 711

def payload_hex
  @payload_hex
end

#sourceObject

(string) the source address



696
697
698
# File 'lib/counterparty/resources.rb', line 696

def source
  @source
end

#startgasObject

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



702
703
704
# File 'lib/counterparty/resources.rb', line 702

def startgas
  @startgas
end

#valueObject

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



708
709
710
# File 'lib/counterparty/resources.rb', line 708

def value
  @value
end