Updates accountInteraction
permission value
Requires permissions: accountInteraction
Removes all permissions for current origin and stops all subscriptions
Required permissions: none
Subscribes to contract updates. Can also be used to update subscriptions
Required permissions: basic
Contract address
Subscription changes
Fully unsubscribe from specific contract updates
Required permissions: none
Contract address
Fully unsubscribe from all contracts
Required permissions: none
Returns provider api state
Required permissions: none
Provider api version in semver format (x.y.z)
Provider api version in uint32 format (xxxyyyzzz)
Selected connection group name (mainnet
/ testnet
/ etc.)
networkId
should be used instead
Numeric network id
List of supported permissions
Object with active permissions attached data
Current subscription states
Requests contract data
Required permissions: basic
Contract address
Contract state or undefined
if it doesn't exist
Compute storage fee
Required permissions: basic
Existing contract state
Optional
masterchain?: booleanWhether to assume that the contract is in the masterchain. Default: false
Optional
timestamp?: numberOptional UNIX timestamp (in seconds) of the moment up to which the storage fee is calculated. Default: current timestamp
NOTE: for a time that was earlier than the last state update, the last_paid
time will be used.
The total storage fee amount in nano EVER for the contract state up to the specified timestamp.
Optional
storageThe minimum amount in nano EVER of debt that must be paid so that the contract is not frozen or deleted.
Account status after charging a storage fee
The amount of debt in nano EVER after which the contract will be frozen
The amount of debt in nano EVER after which the contract will be deleted
Requests accounts with specified code hash
Required permissions: basic
Hex encoded code hash
Optional
continuation?: stringLast address from previous batch
Optional
limit?: numberOptional limit. Values grater than 50 have no effect
List of account addresses
Last address from this batch. Should be used as a continuation
for further requests
Requests contract transactions
Required permissions: basic
Contract address
Optional
continuation?: TransactionIdId of the transaction from which to request the next batch
Optional
limit?: numberOptional limit. Values greater than 50 have no effect
Transactions list in descending order (from latest lt to the oldest)
Previous transaction id of the last transaction in result. Can be used to continue transactions batch
Optional
info?: TransactionsBatchInfoDescribes transactions lt rage (none if empty transactions
array)
Fetches transaction by the exact hash
Required permissions: basic
Hex encoded transaction hash
Transaction
Searches transaction by filters
NOTE: at least one filter must be specified
Required permissions: basic
Optional
inHex encoded incoming message hash
Transaction
Executes only a compute phase locally
Required permissions: basic
Contract address
Optional
cachedCached contract state
Optional
responsible?: booleanWhether to run the method locally as responsible.
This will use internal message with unlimited account balance.
Function call params
Optional
withWhether to use the signature id during signature verification (true by default).
true
, uses the signature id of the selected network (if the capability is enabled).false
, forces signature check to ignore any signature id.number
, uses the specified number as a signature id.Execution output
TVM execution code
Executes all transaction phases locally, producing a new state
Required permissions: basic
Contract address
Optional
cachedCached contract state
Optional
stateOptional base64 encoded .tvc
file
Optional
payload?: string | FunctionCall<Addr>Function call
Message header
Optional
executorOptional executor parameters used during local contract execution
Optional
disableIf true
, signature verification always succeeds
Optional
overrideExplicit account balance in nano EVER
Executed transaction
Contract state after the executed transaction
Parsed function call output
Calculates contract address from code and init params
Required permissions: basic
Base64 encoded TVC file
Contract ABI
Optional
workchain?: numberContract workchain. 0 by default
Optional
publicPublic key, which will be injected into the contract. 0 by default
State init params
Contract address
Base64 encoded state init
Hex encoded state init hash
Unpacks all fields from the contract state using the specified ABI
Required permissions: basic
Contract address
Contract ABI
Optional
cachedCached contract state
Don't fail if something is left in a cell after unpacking
Optional
fields?: TokensObject<Addr>Parsed contracts fields
Contract state or undefined
if it doesn't exist
Decodes initial contract data using the specified ABI
Required permissions: basic
Contract ABI
Base64 encoded init data BOC.
Optional hex encoded public key
State init params
Computes hash of base64 encoded BOC
Required permissions: basic
Base64 encoded cell BOC
Hex encoded cell hash
Creates base64 encoded BOC
Required permissions: basic
Optional
abiABI version. 2.2 if not specified otherwise
Cell structure
Cell data
Base64 encoded cell BOC
Hex encoded cell hash
Decodes base64 encoded BOC
Required permissions: basic
Optional
abiABI version. 2.2 if not specified otherwise
Cell structure
Base64 encoded cell BOC
Don't fail if something is left in a cell after unpacking
Cell data
Extracts public key from raw account state
NOTE: can only be used on contracts which are deployed and has pubkey
header
Required permissions: basic
Base64 encoded account state
FullContractState
Hex encoded public key
Converts base64 encoded contract code into tvc with default init data
Required permissions: basic
Base64 encoded contract code
Base64 encoded state init
Hex encoded cell hash
Merges base64 encoded contract code and state into a tvc
Required permissions: basic
Base64 encoded contract code
Base64 encoded contract data
Base64 encoded state init
Hex encoded cell hash
Splits base64 encoded state init into code and data
Required permissions: basic
Base64 encoded state init
Base64 encoded init data
Base64 encoded contract code
Inserts salt into code
Required permissions: basic
Base64 encoded contract code
Base64 encoded salt (as BOC)
Base64 encoded contract code with salt
Hex encoded cell hash
Retrieves salt from code. Returns undefined if code doesn't contain salt
Required permissions: basic
Base64 encoded contract code
Base64 encoded salt (as BOC)
Creates internal message body
Required permissions: basic
Base64 encoded message body BOC
Decodes body of incoming message
Required permissions: basic
Base64 encoded message body BOC
Contract ABI
Specific method from specified contract ABI. When an array of method names is passed it will try to decode until first successful
Note! If
method
param was provided as string, it will assume that message body contains specified function and this method will either return output or throw an exception. If you just want to try to decode specified method, use['method']
, in that case it will return null if message body doesn't contain requested method.
Function call type
Decodes body of outgoing message
Required permissions: basic
Base64 encoded message body BOC
Contract ABI
Specific method from specified contract ABI. When an array of method names is passed it will try to decode until first successful
Note! If
method
param was provided as string, it will assume that message body contains specified function and this method will either return output or throw an exception. If you just want to try to decode specified method, use['method']
, in that case it will return null if message body doesn't contain requested method.
Decodes body of event message
Required permissions: basic
Base64 encoded message body BOC
Contract ABI
Specific event from specified contract ABI. When an array of event names is passed it will try to decode until first successful
Note! If
event
param was provided as string, it will assume that message body contains specified event and this method will either return output or throw an exception. If you just want to try to decode specified event, use['event']
, in that case it will return null if message body doesn't contain requested event.
Decodes function call
Required permissions: basic
Transaction with the function call
Contract ABI
Specific method from specified contract ABI. When an array of method names is passed it will try to decode until first successful.
Note! If
method
param was provided as string, it will assume that transaction contains specified call and this method will either return output or throw an exception. If you just want to try to decode specified method, use['method']
, in that case it will return null if transaction doesn't contain requested method.
Decodes transaction events
Required permissions: basic
Transaction with the function call
Contract ABI
Successfully decoded events
Checks if a specific data hash was signed with the specified key
Requires permissions: basic
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Base64 or hex encoded arbitrary bytes hash (data must be 32 bytes long)
Base64 or hex encoded signature bytes (data must be 64 bytes long)
Optional
withWhether to use the signature id during verification (true by default).
true
, uses the signature id of the selected network (if the capability is enabled).false
, forces signature check to ignore any signature id.number
, uses the specified number as a signature id.Returns true if message was signed with this key
Sends an unsigned external message to the contract
Required permissions: basic
Message destination address
Optional
stateOptional base64 encoded .tvc
file
Optional
payload?: string | FunctionCall<Addr>Function call
Optional
local?: booleanWhether to only run it locally (false by default)
Can be used as alternative runLocal
method
Optional
executorOptional executor parameters used during local contract execution
Optional
disableIf true
, signature verification always succeds
Optional
overrideExplicit account balance in nano EVER
Executed transaction
Parsed function call output
Adds asset to the selected account
Requires permissions: accountInteraction
Owner's wallet address.
It is the same address as the accountInteraction.address
, but it must be explicitly provided
Which asset to add
Asset parameters
Returns true if the account did not have this asset before
Signs arbitrary data.
NOTE: hashes data before signing. Use signDataRaw
to sign without hash.
Requires permissions: accountInteraction
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Base64 encoded arbitrary bytes
Optional
withWhether to use the signature id for signing (true by default).
true
, uses the signature id of the selected network (if the capability is enabled).false
, forces signature check to ignore any signature id.number
, uses the specified number as a signature id.Hex encoded data hash
Base64 encoded signature bytes (data is guaranteed to be 64 bytes long)
Hex encoded signature bytes (data is guaranteed to be 64 bytes long)
Same signature, but split into two uint256 parts
High 32 bytes of the signature as uint256
Low 32 bytes of the signature as uint256
Signs arbitrary data without hashing it
Requires permissions: accountInteraction
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Base64 encoded arbitrary bytes
Optional
withWhether to use the signature id for signing (true by default).
true
, uses the signature id of the selected network (if the capability is enabled).false
, forces signature check to ignore any signature id.number
, uses the specified number as a signature id.Base64 encoded signature bytes (data is guaranteed to be 64 bytes long)
Hex encoded signature bytes (data is guaranteed to be 64 bytes long)
Same signature, but split into two uint256 parts
High 32 bytes of the signature as uint256
Low 32 bytes of the signature as uint256
Encrypts arbitrary data with specified algorithm for each specified recipient
Requires permissions: accountInteraction
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Public keys of recipients. Hex encoded
Encryption algorithm. Nonce will be generated for each recipient
Base64 encoded data
Encrypted data for each recipient public key
Decrypts encrypted data
Requires permissions: accountInteraction
Encrypted data. The recipient's public key must match the public key of the current account.
Base64 encoded decrypted data
Calculates transaction fees
Required permissions: accountInteraction
This wallet will be used to send the message.
It is the same address as the accountInteraction.address
, but it must be explicitly provided
Message destination address
Amount of nano EVER to send
Optional
payload?: FunctionCall<Addr>Optional function call
Optional
stateOptional base64 encoded TVC
NOTE: If the selected contract do not support this, an error is returned
Fees in nano EVER
Sends an internal message from the user account. Shows an approval window to the user.
Required permissions: accountInteraction
Preferred wallet address.
It is the same address as the accountInteraction.address
, but it must be explicitly provided
Message destination address
Amount of nano EVER to send
Whether to bounce message back on error
Optional
payload?: FunctionCall<Addr>Optional function call
Optional
stateOptional base64 encoded TVC
NOTE: If the selected contract do not support this, an error is returned
Executed transaction
Sends an internal message from the user account without waiting for the transaction. Shows an approval window to the user.
messageStatusUpdated
Required permissions: accountInteraction
Preferred wallet address.
It is the same address as the accountInteraction.address
, but it must be explicitly provided
Message destination address
Amount of nano EVER to send
Whether to bounce message back on error
Optional
payload?: FunctionCall<Addr>Optional function call
Optional
stateOptional base64 encoded TVC
NOTE: If the selected contract do not support this, an error is returned
External message info
Sends an external message to the contract Shows and approval window to the user
Required permissions: accountInteraction
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Message destination address
Optional
stateOptional base64 encoded .tvc
file
Function call
Optional
local?: booleanWhether to only run it locally (false by default)
Can be used as alternative runLocal
method but with user signature
Optional
executorOptional executor parameters used during local contract execution
Optional
disableIf true
, signature verification always succeds
Optional
overrideExplicit account balance in nano EVER
Executed transaction
Parsed function call output
Sends an external message to the contract without waiting for the transaction. Shows and approval window to the user
messageStatusUpdated
Required permissions: accountInteraction
The public key of the preferred account.
It is the same publicKey as the accountInteraction.publicKey
, but it must be explicitly provided
Message destination address
Optional
stateOptional base64 encoded .tvc
file
Function call
External message info
Request user to add a new network. Shows an approval window to the user.
Required permissions: basic
Network info
Optional
switchWhether to switch to the added network (false by default)
Request user to change selected network. Shows an approval window to the user.
Required permissions: basic
Requests new permissions for current origin. Shows an approval window to the user. Will overwrite already existing permissions
Required permissions: none