class TonClient::Boc

Constants

MODULE

Attributes

context[R]
core[R]

Public Class Methods

new(context: Context.new, core: TonClient::TonBinding) click to toggle source
# File lib/ton-client-ruby/Client/Boc.rb, line 9
def initialize(context: Context.new, core: TonClient::TonBinding)
  @context = context
  @core = core
end

Public Instance Methods

cache_get(payload, &block) click to toggle source

INPUT: ParamsOfBocCacheGet boc_ref: String - # # Reference to the cached BOC RESPONSE: ResultOfBocCacheGet boc: String<Optional> - # # BOC encoded as base64.

# File lib/ton-client-ruby/Client/Boc.rb, line 84
def cache_get(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
cache_set(payload, &block) click to toggle source

INPUT: ParamsOfBocCacheSet boc: String - # # BOC encoded as base64 or BOC reference cache_type: BocCacheType - # # Cache type RESPONSE: ResultOfBocCacheSet boc_ref: String - # # Reference to the cached BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 93
def cache_set(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
cache_unpin(payload, &block) click to toggle source

INPUT: ParamsOfBocCacheUnpin pin: String - # # Pinned name boc_ref: String<Optional> - # # Reference to the cached BOC. # # If it is provided then only referenced BOC is unpinned

# File lib/ton-client-ruby/Client/Boc.rb, line 100
def cache_unpin(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
encode_boc(payload, &block) click to toggle source

INPUT: ParamsOfEncodeBoc builder: Array - # # Cell builder operations. boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfEncodeBoc boc: String - # # Encoded cell BOC or BOC cache key.

# File lib/ton-client-ruby/Client/Boc.rb, line 109
def encode_boc(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
get_blockchain_config(payload, &block) click to toggle source

INPUT: ParamsOfGetBlockchainConfig block_boc: String - # # Key block BOC or zerostate BOC encoded as base64 RESPONSE: ResultOfGetBlockchainConfig config_boc: String - # # Blockchain config BOC encoded as base64

# File lib/ton-client-ruby/Client/Boc.rb, line 60
def get_blockchain_config(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
get_boc_hash(payload, &block) click to toggle source

INPUT: ParamsOfGetBocHash boc: String - # # BOC encoded as base64 RESPONSE: ResultOfGetBocHash hash: String - # # BOC root hash encoded with hex

# File lib/ton-client-ruby/Client/Boc.rb, line 68
def get_boc_hash(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
get_code_from_tvc(payload, &block) click to toggle source

INPUT: ParamsOfGetCodeFromTvc tvc: String - # # Contract TVC image encoded as base64 RESPONSE: ResultOfGetCodeFromTvc code: String - # # Contract code encoded as base64

# File lib/ton-client-ruby/Client/Boc.rb, line 76
def get_code_from_tvc(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
parse_account(payload, &block) click to toggle source

INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 34
def parse_account(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
parse_block(payload, &block) click to toggle source

INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 42
def parse_block(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
parse_message(payload, &block) click to toggle source

INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 18
def parse_message(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
parse_shardstate(payload, &block) click to toggle source

INPUT: ParamsOfParseShardstate boc: String - # # BOC encoded as base64 id: String - # # Shardstate identificator workchain_id: Number - # # Workchain shardstate belongs to RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 52
def parse_shardstate(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end
parse_transaction(payload, &block) click to toggle source

INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC

# File lib/ton-client-ruby/Client/Boc.rb, line 26
def parse_transaction(payload, &block)
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
end