Class: Nem::Transaction::MultisigSignature

Inherits:
Base
  • Object
show all
Defined in:
lib/nem/transaction/multisig_signature.rb

Constant Summary collapse

TYPE =

4098 (multisig signature transaction)

0x1002

Constants inherited from Base

Base::NETWORK

Instance Attribute Summary collapse

Attributes inherited from Base

#deadline, #fee, #signature, #timestamp, #type

Instance Method Summary collapse

Methods inherited from Base

#network, #version

Constructor Details

#initialize(other_hash, other_account, signer, network: nil) ⇒ MultisigSignature



11
12
13
14
15
16
17
18
19
# File 'lib/nem/transaction/multisig_signature.rb', line 11

def initialize(other_hash, , signer, network: nil)
  @other_hash = other_hash
   = 
  @signer = signer

  @network = network || Nem.default_network
  @type = TYPE
  @fee = Nem::Fee::Multisig.new(self)
end

Instance Attribute Details

#other_accountString



6
7
8
# File 'lib/nem/transaction/multisig_signature.rb', line 6

def 
  
end

#other_hashString



6
7
8
# File 'lib/nem/transaction/multisig_signature.rb', line 6

def other_hash
  @other_hash
end

#signerString



6
7
8
# File 'lib/nem/transaction/multisig_signature.rb', line 6

def signer
  @signer
end

Instance Method Details

#to_hashObject

attributes must be CAMEL CASE for NIS params



22
23
24
25
26
27
28
# File 'lib/nem/transaction/multisig_signature.rb', line 22

def to_hash
  {
    otherHash: { data: other_hash },
    otherAccount: ,
    signer: signer
  }
end