Modules
type ResponseHandler = (params: any, responseType: number) => void;
Handles additional function responses.
Where:
params
: any – Response parameters. Actual type depends on API function.responseType
: number – Function specific response type.
generate_random_bytes – Generates random byte array of the specified length and returns it in
base64
formatverify_signature – Verifies signed data using the provided public key. Raises error if verification is failed.
nacl_box_open – Decrypt and verify the cipher text using the receivers secret key, the senders public key, and the nonce.
hdkey_xprv_from_mnemonic – Generates an extended master private key that will be the root for all the derived keys
hdkey_derive_from_xprv – Returns extended private key derived from the specified extended private key and child index
get_crypto_box_info – Get Crypto Box Info. Used to get
encrypted_secret
that should be used for all the cryptobox initializations except the first one.clear_crypto_box_secret_cache – Removes cached secrets (overwrites with zeroes) from all signing and encryption boxes, derived from crypto box.
attach_signature – Combines
hex
-encoded signature
with base64
-encoded unsigned_message
. Returns signed message encoded in base64
.update_initial_data – Updates initial account data with initial values for the contract's static variables and owner's public key. This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.
encode_initial_data – Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to
encode_tvc
function afterwards.decode_initial_data – Decodes initial values of a contract's static variables and owner's public key from account initial data This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.
get_signature_data – Extracts signature from message body and calculates hash to verify the signature
decode_tvc – Decodes tvc according to the tvc spec. Read more about tvc structure here https://github.com/tonlabs/ever-struct/blob/main/src/scheme/mod.rs#L30
cache_unpin – Unpin BOCs with specified pin defined in the
cache_set
. Decrease pin reference counter for BOCs with specified pin defined in the cache_set
. BOCs which have only 1 pin and its reference counter become 0 will be removed from cacheencode_boc – Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type.
decode_state_init – Decodes contract's initial state into code, data, libraries and special options.
encode_state_init – Encodes initial contract state from code, data, libraries ans special options (see input params)
get_monitor_info – Returns summary information about current state of the specified monitoring queue.
cancel_monitor – Cancels all background activity and releases all allocated system resources for the specified monitoring queue.
wait_for_transaction – Performs monitoring of the network for the result transaction of the external inbound message processing.