Class: Blockfrostruby::CardanoMainNet

Direct Known Subclasses

CardanoPreprod, CardanoPreview, CardanoTestNet

Constant Summary

Constants included from Blockfrostruby

VERSION

Instance Attribute Summary

Attributes inherited from Net

#config, #project_id, #url

Instance Method Summary collapse

Methods included from NutlinkEndpoints

#get_address_metadata_list, #get_address_metadata_tickers_list, #get_ticker_records, #get_ticker_records_by_address

Methods included from Request

get_response, post_file, post_request_cbor, post_request_raw

Methods included from Params

define_params

Methods included from Validator

validate_init_params, validate_params

Methods included from Configuration

default_config, define_config

Methods included from TransactionsEndpoints

#get_transaction, #get_transaction_delegations, #get_transaction_metadata, #get_transaction_metadata_in_cbor, #get_transaction_mirs, #get_transaction_pool_retires, #get_transaction_pool_updates, #get_transaction_stakes, #get_transaction_utxos, #get_transaction_withdrawals, #submit_transaction

Methods included from PoolsEndpoints

#get_list_of_retired_pools, #get_list_of_retiring_pools, #get_pool, #get_pool_blocks, #get_pool_delegators, #get_pool_history, #get_pool_metadata, #get_pool_relays, #get_pool_updates, #get_pools

Methods included from NetworkEndpoints

#get_network

Methods included from MetadataEndpoints

#get_transaction_metadata_content_in_cbor, #get_transaction_metadata_content_in_json, #get_transactions_metadata_labels

Methods included from LedgerEndpoints

#get_genesis

Methods included from EpochsEndpoints

#get_epoch, #get_epoch_blocks, #get_epoch_blocks_by_pool, #get_epoch_parameters, #get_epoch_stakes, #get_epoch_stakes_by_pool, #get_latest_epoch, #get_latest_epoch_parameters, #get_list_of_next_epochs, #get_list_of_previous_epochs

Methods included from BlocksEndpoints

#get_block, #get_block_in_slot, #get_block_in_slot_in_epoch, #get_block_latest, #get_block_latest_transactions, #get_block_transactions, #get_list_of_next_blocks, #get_list_of_previous_blocks

Methods included from AssetsEndpoints

#get_asset_addresses, #get_asset_history, #get_asset_transactions, #get_assets, #get_assets_of_policy, #get_specific_asset

Methods included from AddressesEndpoints

#get_address_details, #get_address_transactions, #get_address_utxos, #get_specific_address

Methods included from AccountsEndpoints

#get_account_address, #get_account_addresses_assets, #get_account_assosiated_addresses, #get_account_delegations, #get_account_history, #get_account_mirs, #get_account_registrations, #get_account_rewards, #get_account_withdrawals

Methods included from MetricsEndpoints

#get_metrics, #get_metrics_endpoints

Methods included from HealthEndpoints

#get_health, #get_health_clock, #get_root

Methods included from CustomEndpoints

#get_custom_url, #get_help_info

Constructor Details

#initialize(project_id, config = {}) ⇒ Object

Create an instanse of CardanoMainNet object. Using of SDK is a calling methods on such object.

Parameters:

  • project_id (String)

    the project_id from API

  • config (Hash) (defaults to: {})

    a config with params: use_asc_order_as_default, default_count_per_page, parallel_requests, sleep_between_retries_ms



63
64
65
66
# File 'lib/blockfrost-ruby.rb', line 63

def initialize(project_id, config = {})
  super
  @url = CARDANO_MAINNET_URL
end