Class: CardanoWallet::Misc::Proxy

Inherits:
Base
  • Object
show all
Defined in:
lib/cardano_wallet/misc.rb

Overview

Instance Attribute Summary

Attributes inherited from Base

#opt

Instance Method Summary collapse

Methods inherited from Base

#byron, #initialize, #misc, #shared, #shelley, #utils

Constructor Details

This class inherits a constructor from CardanoWallet::Base

Instance Method Details

#submit_external_transaction(binary_blob) ⇒ Object

Submit a transaction that was created and signed outside of cardano-wallet.

Parameters:

  • binary_blob (String)

    Signed transaction message binary blob.

See Also:



153
154
155
156
157
# File 'lib/cardano_wallet/misc.rb', line 153

def submit_external_transaction(binary_blob)
  self.class.post('/proxy/transactions',
                  body: binary_blob,
                  headers: { 'Content-Type' => 'application/octet-stream' })
end