Module: SolanaRpcRuby

Defined in:
lib/solana_rpc_ruby.rb,
lib/solana_rpc_ruby/version.rb,
lib/solana_rpc_ruby/response.rb,
lib/solana_rpc_ruby/api_error.rb,
lib/solana_rpc_ruby/api_client.rb,
lib/solana_rpc_ruby/request_body.rb,
lib/solana_rpc_ruby/helper_methods.rb,
lib/solana_rpc_ruby/methods_wrapper.rb,
lib/solana_rpc_ruby/websocket_client.rb,
lib/solana_rpc_ruby/websocket_methods_wrapper.rb,
lib/generators/solana_rpc_ruby/install_generator.rb

Overview

Namespace for classes and modules that handle connection with solana JSON RPC API.

Defined Under Namespace

Modules: Generators, HelperMethods, RequestBody Classes: ApiClient, ApiError, MethodsWrapper, Response, WebsocketClient, WebsocketsMethodsWrapper

Constant Summary collapse

VERSION =
'1.3.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clusterString

Default cluster address that will be used if not passed.

Returns:

  • (String)

    cluster address.



13
14
15
# File 'lib/solana_rpc_ruby.rb', line 13

def cluster
  @cluster
end

.json_rpc_versionString

Default json rpc version that will be used.

Returns:

  • (String)

    json rpc version.



21
22
23
# File 'lib/solana_rpc_ruby.rb', line 21

def json_rpc_version
  @json_rpc_version
end

.ws_clusterString

Default websocket cluster address that will be used if not passed.

Returns:

  • (String)

    websocket cluster address.



17
18
19
# File 'lib/solana_rpc_ruby.rb', line 17

def ws_cluster
  @ws_cluster
end

Class Method Details

.config {|_self| ... } ⇒ String

Config set from initializer.

Yields:

  • (_self)

Yield Parameters:

  • _self (SolanaRpcRuby)

    the object that the method was called on

Returns:

  • (String)

    encoding.



25
26
27
# File 'lib/solana_rpc_ruby.rb', line 25

def config
  yield self
end