Modules
Last updated
Last updated
Handles additional function responses.
Where:
params
: any – Response parameters. Actual type depends on API function.
responseType
: number – Function specific response type.
– Returns Core Library API reference
– Returns Core Library version
– Returns Core Library API reference
– Returns detailed information about this build.
– Resolves application request processing result
– Integer factorization
– Modular exponentiation
– Calculates CRC16 using TVM algorithm.
– Generates random byte array of the specified length and returns it in base64
format
– Converts public key to tvm safe_format
– Generates random ed25519 key pair.
– Signs a data using the provided keys.
– Verifies signed data using the provided public key. Raises error if verification is failed.
– Calculates SHA256 hash of the specified data.
– Calculates SHA512 hash of the specified data.
– Perform scrypt
encryption
– Generates a key pair for signing from the secret key
– Signs data using the signer's secret key.
– Verifies the signature and returns the unsigned message
– Signs the message using the secret key and returns a signature.
– Verifies the signature with public key and unsigned
data.
– Generates a random NaCl key pair
– Generates key pair from a secret key
– Public key authenticated encryption
– Decrypt and verify the cipher text using the receivers secret key, the senders public key, and the nonce.
– Encrypt and authenticate message using nonce and secret key.
– Decrypts and verifies cipher text using nonce
and secret key
.
– Prints the list of words from the specified dictionary
– Generates a random mnemonic
– Generates mnemonic from pre-generated entropy
– Validates a mnemonic phrase
– Derives a key pair for signing from the seed phrase
– Generates an extended master private key that will be the root for all the derived keys
– Returns extended private key derived from the specified extended private key and child index
– Derives the extended private key from the specified key and path
– Extracts the private key from the serialized extended private key
– Extracts the public key from the serialized extended private key
– Performs symmetric chacha20
encryption.
– Creates a Crypto Box instance.
– Removes Crypto Box. Clears all secret data.
– Get Crypto Box Info. Used to get encrypted_secret
that should be used for all the cryptobox initializations except the first one.
– Get Crypto Box Seed Phrase.
– Get handle of Signing Box derived from Crypto Box.
– Gets Encryption Box from Crypto Box.
– Removes cached secrets (overwrites with zeroes) from all signing and encryption boxes, derived from crypto box.
– Register an application implemented signing box.
– Creates a default signing box implementation.
– Returns public key of signing key pair.
– Returns signed user data.
– Removes signing box from SDK.
– Register an application implemented encryption box.
– Removes encryption box from SDK
– Queries info from the given encryption box
– Encrypts data using given encryption box Note.
– Decrypts data using given encryption box Note.
– Creates encryption box with specified algorithm
– Encodes message body according to ABI function call.
– Encodes an ABI-compatible message
– Encodes an internal ABI-compatible message
– Combines hex
-encoded signature
with base64
-encoded unsigned_message
. Returns signed message encoded in base64
.
– Decodes message body using provided message BOC and ABI.
– Decodes message body using provided body BOC and ABI.
– Creates account state BOC
– Decodes account data using provided data BOC and ABI.
– 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.
– 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.
– 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.
– Decodes BOC into JSON as a set of provided parameters.
– Encodes given parameters in JSON into a BOC using param types from ABI.
– Calculates contract function ID by contract ABI
– Extracts signature from message body and calculates hash to verify the signature
– Decodes tvc according to the tvc spec. Read more about tvc structure here
– Parses message boc into a JSON
– Parses transaction boc into a JSON
– Parses account boc into a JSON
– Parses block boc into a JSON
– Parses shardstate boc into a JSON
– Extract blockchain configuration from key block and also from zerostate.
– Calculates BOC root hash
– Calculates BOC depth
– Extracts code from TVC contract image
– Get BOC from cache
– Save BOC into cache or increase pin counter for existing pinned BOC
– 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 cache
– 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.
– Returns the contract code's salt if it is present.
– Sets new salt to contract code.
– Decodes contract's initial state into code, data, libraries and special options.
– Encodes initial contract state from code, data, libraries ans special options (see input params)
– Encodes a message
– Returns the compiler version used to compile the code.
– Starts monitoring for the processing results of the specified messages.
– Returns summary information about current state of the specified monitoring queue.
– Fetches next resolved results from the specified monitoring queue.
– Cancels all background activity and releases all allocated system resources for the specified monitoring queue.
– Sends specified messages to the blockchain.
– Sends message to the network
– Performs monitoring of the network for the result transaction of the external inbound message processing.
– Creates message, sends it to the network and monitors its processing.
– Converts address from any TVM format to any TVM format
– Validates and returns the type of any TVM address.
– Calculates storage fee for an account over a specified time period
– Compresses data using Zstandard algorithm
– Decompresses data using Zstandard algorithm
– Emulates all the phases of contract execution locally
– Executes get-methods of ABI-compatible contracts
– Executes a get-method of FIFT contract
– Performs DAppServer GraphQL query.
– Performs multiple queries per single fetch.
– Queries collection data
– Aggregates collection data.
– Returns an object that fulfills the conditions or waits for its appearance
– Cancels a subscription
– Creates a collection subscription
– Creates a subscription
– Suspends network module to stop any network activity
– Resumes network module to enable network activity
– Returns ID of the last block in a specified account shard
– Requests the list of alternative endpoints from server
– Sets the list of endpoints to use on reinit
– Requests the list of alternative endpoints from server
– Allows to query and paginate through the list of accounts that the specified account has interacted with, sorted by the time of the last internal message between accounts
– Returns a tree of transactions triggered by a specific message.
– Creates block iterator.
– Resumes block iterator.
– Creates transaction iterator.
– Resumes transaction iterator.
– Returns next available items.
– Removes an iterator
– Returns signature ID for configured network if it should be used in messages signature