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/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

Constant Summary collapse

VERSION =
'1.0.0.pre'

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.


11
12
13
# File 'lib/solana_rpc_ruby.rb', line 11

def cluster
  @cluster
end

.json_rpc_versionString

Default json rpc version that will be used.

Returns:

  • (String)

    json rpc version.


15
16
17
# File 'lib/solana_rpc_ruby.rb', line 15

def json_rpc_version
  @json_rpc_version
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.


19
20
21
# File 'lib/solana_rpc_ruby.rb', line 19

def config
  yield self
end