Skip to content

blockchain

YYBartT edited this page Jan 20, 2026 · 2 revisions

Blockchain

Functions

This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.



Back To Top

elements_blockchain_get_smart_contracts

Elements Operation: getSmartContracts

This function gets a pagination of SmartContracts.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_smart_contracts(_offset=undefined, _count=undefined, _api=undefined, _network=undefined, _callback=undefined)
Argument Type Description
_offset Real The offset of the first result to return in the page.
_count Real The number of results to return in the page.
_api String ( one of: "NEO"
_network Array of String ( one of: "NEO"
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsPaginationSmartContract
_request ElementsRequest



Back To Top

elements_blockchain_create_smart_contract

Elements Operation: createSmartContract

This function patches a Smart Contract entry, associated with the specified deployed script hash.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_create_smart_contract(_body=undefined, _callback=undefined)
Argument Type Description
_body ElementsCreateSmartContractRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsSmartContract
_request ElementsRequest



Back To Top

elements_blockchain_get_smart_contract

Elements Operation: getSmartContract

This function gets a specific Smart Contract by contractId.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_smart_contract(_contract_id, _callback=undefined)
Argument Type Description
_contract_id String The ID of the contract.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsSmartContract
_request ElementsRequest



Back To Top

elements_blockchain_update_smart_contract

Elements Operation: updateSmartContract

This function patches a Smart Contract entry, associated with the specified deployed script hash.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_update_smart_contract(_contract_id, _body=undefined, _callback=undefined)
Argument Type Description
_contract_id String The ID of the contract.
_body ElementsUpdateSmartContractRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsSmartContract
_request ElementsRequest



Back To Top

elements_blockchain_delete_contract

Elements Operation: deleteContract

This function deletes a Smart Contract with the specified contractId.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_delete_contract(_contract_id, _callback=undefined)
Argument Type Description
_contract_id String The ID of the contract.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data Undefined
_request ElementsRequest



Back To Top

elements_blockchain_get_vaults

Elements Operation: getVaults

This function gets a pagination of Wallets. Optionally a user ID can be specified to filter for a given user.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_vaults(_offset=undefined, _count=undefined, _user_id=undefined, _callback=undefined)
Argument Type Description
_offset Real The offset of the first result to return in the page.
_count Real The number of results to return in the page.
_user_id String The ID of the user.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsPaginationVault
_request ElementsRequest



Back To Top

elements_blockchain_create_vault

Elements Operation: createVault

This function creates a new Vault, associated with the given user.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_create_vault(_body=undefined, _callback=undefined)
Argument Type Description
_body ElementsCreateVaultRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsVault
_request ElementsRequest



Back To Top

elements_blockchain_get_vault

Elements Operation: getVault

This function gets a specific Vault by ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_vault(_vault_id, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsVault
_request ElementsRequest



Back To Top

elements_blockchain_update_vault

Elements Operation: updateVault

This function updates a Vault with the specified name or ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_update_vault(_vault_id, _body=undefined, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_body ElementsUpdateVaultRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsVault
_request ElementsRequest



Back To Top

elements_blockchain_delete_vault

Elements Operation: deleteVault

This function deletes a Vault with the specified ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_delete_vault(_vault_id, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data Undefined
_request ElementsRequest



Back To Top

elements_blockchain_get_wallets

Elements Operation: getWallets

This function gets a pagination of Wallets. Optionally a user ID can be specified to filter for a given user.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_wallets(_vault_id, _offset=undefined, _count=undefined, _user_id=undefined, _api=undefined, _network=undefined, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_offset Real The offset of the first result to return in the page.
_count Real The number of results to return in the page.
_user_id String The ID of the user.
_api String ( one of: "NEO"
_network Array of String ( one of: "NEO"
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsPaginationWallet
_request ElementsRequest



Back To Top

elements_blockchain_create_wallet

Elements Operation: createWallet

This function creates a new Wallet, associated with the given user.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_create_wallet(_vault_id, _body=undefined, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_body ElementsCreateWalletRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsWallet
_request ElementsRequest



Back To Top

elements_blockchain_get_wallet

Elements Operation: getWallet

This function gets a specific Wallet by ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_wallet(_vault_id, _wallet_id, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_wallet_id String The ID of the wallet.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsWallet
_request ElementsRequest



Back To Top

elements_blockchain_update_wallet

Elements Operation: updateWallet

This function updates a Wallet with the specified name or ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_update_wallet(_vault_id, _wallet_id, _body=undefined, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_wallet_id String The ID of the wallet.
_body ElementsUpdateWalletRequest The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsWallet
_request ElementsRequest



Back To Top

elements_blockchain_delete_wallet

Elements Operation: deleteWallet

This function deletes a Wallet with the specified ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_delete_wallet(_vault_id, _wallet_id, _callback=undefined)
Argument Type Description
_vault_id String The ID of the vault.
_wallet_id String The ID of the wallet.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data Undefined
_request ElementsRequest



Back To Top

elements_blockchain_get_wallet_1

Elements Operation: getWallet_1

This function gets a specific Wallet by ID.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_blockchain_get_wallet_1(_wallet_id, _callback=undefined)
Argument Type Description
_wallet_id String The ID of the wallet.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsWallet
_request ElementsRequest


Clone this wiki locally