Sha256: f7e8ff1ed3846c0807d00933f091250808d08a94eb5f8af6522d2a8ec827b523

Contents?: true

Size: 675 Bytes

Versions: 5

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

module CryptomateApi
  module Management
    # Get all the blockchains available in the platform. You can use this information to create new
    # credentials for your clients or using every other endpoints that ask for the blockchain where
    # you want to operate.
    class Blockchain < CryptomateApi::Base
      # Get all blockchains
      # https://cryptomate.me/docs/management#get-all-blockchains
      # Response:
      # [
      #   {
      #     "id": "string",
      #     "description": "string"
      #   }
      # ]
      def get_all_blockchains
        self.class.get("/management/blockchains/list")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cryptomate_api-0.1.4 lib/cryptomate_api/management/blockchain.rb
cryptomate_api-0.1.3 lib/cryptomate_api/management/blockchain.rb
cryptomate_api-0.1.2 lib/cryptomate_api/management/blockchain.rb
cryptomate_api-0.1.1 lib/cryptomate_api/management/blockchain.rb
cryptomate_api-0.1.0 lib/cryptomate_api/management/blockchain.rb