Module: NetworkEndpoints

Extended by:
Request
Included in:
Blockfrostruby::CardanoMainNet
Defined in:
lib/blockfrostruby/endpoints/cardano/network_endpoints.rb

Constant Summary

Constants included from Blockfrostruby

Blockfrostruby::VERSION

Instance Method Summary collapse

Methods included from Request

get_response, post_file, post_request_cbor, post_request_raw

Instance Method Details

#get_networkHash

Calls get request on (@url)/network.

Returns:

  • (Hash)

    formatted result with status and body keys.



11
12
13
# File 'lib/blockfrostruby/endpoints/cardano/network_endpoints.rb', line 11

def get_network
  Request.get_response("#{@url}/network", @project_id)
end