Creates typed contract wrapper.
new ever.Contract(abi, address)
should be used instead
Readonly object (must be declared with as const
)
Default contract address
Creates subscriptions group
new ever.Subscriber()
should be used instead
Requests new permissions for current origin. Shows an approval window to the user. Will overwrite already existing permissions
Required permissions: none
Called every time contract state changes
Called on each new transactions batch, received on subscription
Called every time when provider connection is established
Called when inpage provider disconnects from extension
Called every time a delayed message was delivered or expired
Called each time the user changes network
Called when permissions are changed.
Mostly when account has been removed from the current accountInteraction
permission,
or disconnect method was called
Called when the user logs out of the extension
Returns provider api state
Required permissions: none
Requests contract data
Required permissions: basic
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.
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
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
Searches transaction by hash
Required permissions: basic
Hex encoded transaction hash
Computes contract address from code and init params
Required permissions: basic
Computes contract address and state from code and init params
Required permissions: basic
Decodes initial contract data using the specified ABI
Required permissions: basic
Creates base64 encoded BOC
Required permissions: basic
Optional
abiDecodes base64 encoded BOC
Required permissions: basic
Optional
abiMerges code and data into state init
Required permissions: basic
Base64 encoded contract code
Base64 encoded contract data
Merges code and data into state init
Required permissions: basic
Retrieves salt from code. Returns undefined if code doesn't contain salt
Required permissions: basic
Adds asset to the selected account
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 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.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.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.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
Decrypts encrypted data. Returns base64 encoded data
Requires permissions: accountInteraction
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<Address>Optional function call
Optional
stateOptional base64 encoded TVC
NOTE: If the selected contract do not support this, an error is returned
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<Address>Optional function call
Optional
stateOptional base64 encoded TVC
NOTE: If the selected contract do not support this, an error is returned
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)
Whether provider api is ready
Raw provider api
Checks whether this page has injected Everscale provider or there is a fallback provider.