0.9.1 • Published 2 years ago

@bladelabs/bladeconnect v0.9.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

For example usage and testing the below APIs using a Demo App, please go here and setup the app locally: Demo App

Blade Wallet uses the Hedera Wallet Interface

Create new wallet:

import {BladeWallet} from 'bladeconnect;

const wallet = new BladeWallet();
APIDescription
bladeWallet.getAccountId()Get accountId of active account.
bladeWallet.getAccountBalance( accountId:AccountId\|string)
bladeWallet.getAccountInfo( accountId:AccountId\|string)Get information about a Hedera account on the connected network.
bladeWallet.getProvider()Get the Provider which gives access to the underlying Ledger network.
bladeWallet.getAccountKey()Get the public key used by this wallet.
bladeWallet.checkTransaction(transaction:Transaction)Check that a transaction is valid.
bladeWallet.populateTransaction(transaction:Transaction)Set transaction id with active account.
bladeWallet.sendRequest(request:Executable)Sign and execute a transaction with provider account.
bladeWallet.signTransaction(transaction:Transaction)Sign a transaction with active wallet account.
bladeWallet.getLedgerId()Ledger Id of the currently connected network.
bladeWallet.getMirrorNetwork()Return array of mirror nodes for the current network.
bladeWallet.getNetwork()Get map of nodes for the current hedera network.
APIDescription
provider.getAccountBalance( accountId:AccountId\|string)Get balance information for Hedera account.
provider.getAccountInfo( accountId:AccountId\|string)Get information about a Hedera account on the connected network.
provider.getTransactionReceipt(transactionId:TransactionId)Query network for receipt of a transaction.
provider.waitForReceipt(response:TransactionResponse)Wait for a submitted transaction to resolve with a receipt.
provider.getLedgerId()Ledger Id of the currently connected network.
provider.getMirrorNetwork()Return array of mirror nodes for the current network.
provider.getNetwork()Get map of nodes for the current hedera network.