Blockchain manager


Blockchain manager is responsible for generic direct blockchain interaction.

constructor(provider)

provider - provider is the address of the blockchain network you want to connect


callAuthorized(manager, method, wallet_address, wallet_password, callback, ...args)

Method is basically a wrapper for every action that requires user to unlock/lock account to process it. It will trigger the unlock action, trigger the required action and triggers lock again.

manager - expects the instance of a contract manager

method - expects the method from the manager instance

wallet_address - expects wallet address of the user

wallet_password - expects wallet password of the provided address

callback - expects the callback function that will be triggered after the action is executed

..args - expects additional arguments that required by the method of a manager that was called


unlockAccount(wallet_address, wallet_password = '')

Method is unlocking user wallet

wallet_address - expects wallet address of the user

wallet_password - expects wallet password of the provided address


lockAccount(wallet_address)

Method is locking user wallet

wallet_address - expects wallet address of the user


createWallet(password, callback)

Method is creating a new wallet for the user

password - expects desired password for the user wallet

callback - expects the callback function that will be triggered after the creation is completed


getTransactionHash(transactionHash, callback)

Method is getting information about the transaction

transactionHash - expects to get hash of the transaction to get the information for

callback - expects the callback function that will be triggered after transaction information received

results matching ""

    No results matching ""