ProviderApi class abstract

Constructors

ProviderApi.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAsset(AddAssetInput input) Future<AddAssetOutput>
Adds asset to the selected account
addNetwork(AddNetworkInput input) Future<AddNetworkOutput>
Request user to add a new network. Shows an approval window to the user.
call(String method, dynamic params) → dynamic
changeAccount() Future<PermissionsPartial>
Updates accountInteraction permission value
changeNetwork(ChangeNetworkInput input) Future<ChangeNetworkOutput>
Request user to change selected network. Shows an approval window to the user.
codeToTvc(CodeToTvcInput input) Future<CodeToTvcOutput>
Converts base64 encoded contract code into tvc with default init data
computeStorageFee(ComputeStorageFeeInput input) Future<ComputeStorageFeeOutput>
Compute storage fee
decodeEvent(DecodeEventInput input) Future<DecodeEventOutput?>
Decodes body of event message
decodeInput(DecodeInputInput input) Future<DecodeInputOutput?>
Decodes body of incoming message
decodeOutput(DecodeOutputInput input) Future<DecodeOutputOutput?>
Decodes body of outgoing message
decodeTransaction(DecodeTransactionInput input) Future<DecodeTransactionOutput?>
Decodes function call
decodeTransactionEvents(DecodeTransactionEventsInput input) Future<DecodeTransactionEventsOutput>
Decodes transaction events
decryptData(DecryptDataInput input) Future<DecryptDataOutput>
Decrypts encrypted data
disconnect() Future<void>
Removes all permissions for current origin and stops all subscriptions
encodeInternalInput(FunctionCall input) Future<EncodeInternalInputOutput>
Creates internal message body
encryptData(EncryptDataInput input) Future<EncryptDataOutput>
Encrypts arbitrary data with specified algorithm for each specified recipient
estimateFees(EstimateFeesInput input) Future<EstimateFeesOutput>
Calculates transaction fees
executeLocal(ExecuteLocalInput input) Future<ExecuteLocalOutput>
Executes all transaction phases locally, producing a new state
extractPublicKey(ExtractPublicKeyInput input) Future<ExtractPublicKeyOutput>
Extracts public key from raw account state NOTE: can only be used on contracts which are deployed and has pubkey header
findTransaction(FindTransactionInput input) Future<FindTransactionOutput>
Searches transaction by filters NOTE: at least one filter must be specified
getAccountsByCodeHash(GetAccountsByCodeHashInput input) Future<GetAccountsByCodeHashOutput>
Requests accounts with specified code hash
getBocHash(GetBocHashInput input) Future<GetBocHashOutput>
Computes hash of base64 encoded BOC
getCodeSalt(GetCodeSaltInput input) Future<GetCodeSaltOutput>
Retrieves salt from code. Returns undefined if code doesn't contain salt
getContractFields(GetContractFieldsInput input) Future<GetContractFieldsOutput>
Unpacks all fields from the contract state using the specified ABI
getExpectedAddress(GetExpectedAddressInput input) Future<GetExpectedAddressOutput>
Calculates contract address from code and init params
getFullContractState(GetFullContractStateInput input) Future<GetFullContractStateOutput>
Requests contract data
getProviderState() Future<GetProviderStateOutput>
Returns provider api state
getTransaction(GetTransactionInput input) Future<GetTransactionOutput>
Fetches transaction by the exact hash
getTransactions(GetTransactionsInput input) Future<GetTransactionsOutput>
Requests contract transactions
mergeTvc(MergeTvcInput input) Future<MergeTvcOutput>
Merges base64 encoded contract code and state into a tvc
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packIntoCell(PackIntoCellInput input) Future<PackIntoCellOutput>
Creates base64 encoded BOC
requestPermissions(RequestPermissionsInput input) Future<PermissionsPartial>
Requests new permissions for current origin. Shows an approval window to the user. Will overwrite already existing permissions
runGetter(RunGetterInput input) Future<RunGetterOutput>
Execute getter of the contract
runLocal(RunLocalInput input) Future<RunLocalOutput>
Executes only a compute phase locally
sendExternalMessage(SendExternalMessageInput input) Future<SendExternalMessageOutput>
Sends an external message to the contract Shows and approval window to the user
sendExternalMessageDelayed(SendExternalMessageDelayedInput input) Future<SendExternalMessageDelayedOutput>
Sends an external message to the contract without waiting for the transaction. Shows and approval window to the user
sendMessage(SendMessageInput input) Future<SendMessageOutput>
Sends an internal message from the user account. Shows an approval window to the user.
sendMessageDelayed(SendMessageDelayedInput input) Future<SendMessageDelayedOutput>
Sends an internal message from the user account without waiting for the transaction. Shows an approval window to the user.
sendUnsignedExternalMessage(SendUnsignedExternalMessageInput input) Future<SendUnsignedExternalMessageOutput>
Sends an unsigned external message to the contract
setCodeSalt(SetCodeSaltInput input) Future<SetCodeSaltOutput>
Inserts salt into code
signData(SignDataInput input) Future<SignDataOutput>
Signs arbitrary data. NOTE: hashes data before signing. Use signDataRaw to sign without hash.
signDataRaw(SignDataRawInput input) Future<SignDataRawOutput>
Signs arbitrary data without hashing it
splitTvc(SplitTvcInput input) Future<SplitTvcOutput>
Splits base64 encoded state init into code and data
subscribe(SubscribeInput input) Future<ContractUpdatesSubscription>
Subscribes to contract updates. Can also be used to update subscriptions
toString() String
A string representation of this object.
inherited
unpackFromCell(UnpackFromCellInput input) Future<UnpackFromCellOutput>
Decodes base64 encoded BOC
unpackInitData(UnpackInitDataInput input) Future<UnpackInitDataOutput>
Decodes initial contract data using the specified ABI
unsubscribe(UnsubscribeInput input) Future<void>
Fully unsubscribe from specific contract updates
unsubscribeAll() Future<void>
Fully unsubscribe from all contracts
verifySignature(VerifySignatureInput input) Future<VerifySignatureOutput>
Checks if a specific data hash was signed with the specified key

Operators

operator ==(Object other) bool
The equality operator.
inherited