Sha256: 5d47b595d9f311ef1e4af73d1b930d7342b0d079d2e2ebdfeb1eb0e1a7655d35

Contents?: true

Size: 789 Bytes

Versions: 10

Compression:

Stored size: 789 Bytes

Contents

module CardanoWallet
  module Proxy

    # Call API for Proxy
    # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Proxy
    def self.new(opt)
      Init.new opt
    end

    class Init < Base
      def initialize opt
        super
      end

      # Submit a transaction that was created and signed outside of cardano-wallet.
      # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postExternalTransaction
      # @param binary_blob [String] Signed transaction message binary blob.
      def submit_external_transaction(binary_blob)
        self.class.post("/proxy/transactions",
                        :body => binary_blob,
                        :headers => { 'Content-Type' => 'application/octet-stream' })
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cardano_wallet-0.1.9 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.8 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.7 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.6 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.5 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.4 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.3 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.2 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.1 lib/cardano_wallet/proxy.rb
cardano_wallet-0.1.0 lib/cardano_wallet/proxy.rb