SignClientTypes.Metadata object for the DApp metadata.
LedgerId representing the network (default: LedgerId.TESTNET).
Project ID for the WalletConnect client.
Optional
methods: string[]Array of supported methods for the DApp (optional).
Optional
events: string[]Array of supported events for the DApp (optional).
Optional
chains: string[]Private
abortablePrivate
checkInitiates the WallecConnect connection flow using URI.
Optional
pairingTopic: stringThe pairing topic for the connection (optional).
A Promise that resolves when the connection process is complete.
Private
connectURIPrivate
createExecutes a transaction on the Hedera network.
The parameters of type ExecuteTransactionParams
required for the transaction execution.
Promise<ExecuteTransactionResult>
Use helper transactionToBase64String
to encode Transaction
to Base64 string
const params = {
signedTransaction: [transactionToBase64String(transaction)]
}
const result = await dAppConnector.executeTransaction(params)
Retrieves the node addresses associated with the current Hedera network.
When there is no active session or an error occurs during the request.
Promise<GetNodeAddressesResult>
Private
onPrivate
pingPrivate
pingPrivate
requestSigns and send Query
on the Hedera network.
The parameters of type SignAndExecuteQueryParams
required for the Query execution.
Promise<SignAndExecuteQueryResult>
Use helper queryToBase64String
to encode Query
to Base64 string
const params = {
signerAccountId: '0.0.12345',
query: queryToBase64String(query),
}
const result = await dAppConnector.signAndExecuteQuery(params)
Signs and executes Transactions on the Hedera network.
The parameters of type SignAndExecuteTransactionParams
required for Transaction
signing and execution.
Promise<SignAndExecuteTransactionResult>
Use helper transactionToBase64String
to encode Transaction
to Base64 string
const params = {
signerAccountId: '0.0.12345'
transaction: [transactionToBase64String(transaction)]
}
const result = await dAppConnector.signAndExecuteTransaction(params)
Signs a provided message
with provided signerAccountId
.
The parameters of type SignMessageParams
required for signing message.
Promise<SignMessageResult>
const params = {
signerAccountId: '0.0.12345',
message: 'Hello World!'
}
const result = await dAppConnector.signMessage(params)
Signs and executes Transactions on the Hedera network.
The parameters of type SignTransactionParams
required for Transaction
signing.
Promise<SignTransactionResult>
const transactionBodyObject = transactionToTransactionBody(transaction, AccountId.fromString('0.0.3'))
const transactionBody = transactionBodyToBase64String(transactionBodyObject)
const params = {
signerAccountId: '0.0.12345',
transactionBody
}
const result = await dAppConnector.signTransaction(params)
Generated using TypeDoc
Initializes the DAppConnector instance.