171 questions
0 votes
0 answers
21 views
Issue in reading balance with hedera-wallet-connect and hashbgraph sdk
I am trying to read balance from hashpack wallet, for few wallets I created recently it is working fine but for old account created previously not able to read balance and after while maybe after few ...
0 votes
1 answer
63 views
Contract deployed successfully on Hedera Testnet, but has no code. Script works for anvil
I have the following deploment script: require('dotenv').config(); const { ethers } = require("ethers"); const fs = require("fs"); const path = require("path"); const ...
3 votes
1 answer
146 views
How to manually sign a transaction using Hedera Javascript SDK?
I’m trying to use a Hardware Security Module (HSM) to manually sign a Hedera transaction, but the Hedera JavaScript SDK requires me to pass my private key to the SDK for signing. Since my private key ...
1 vote
1 answer
71 views
Unable to use existing key to create hedera testnet client
I have a private key in the following format, -----BEGIN PRIVATE KEY----- MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCp1cSazYun0pCX . . T0r1PTCefoaLDO7gvwJ1Aa6rmF8SrA== -----END PRIVATE KEY-----...
0 votes
0 answers
20 views
What causes `INVALID_TRANSACTION_START` for Hedera transactions on some computers but not others? [duplicate]
What are the possible reasons for INVALID_TRANSACTION_START error from the Hedera SDK? PrecheckStatusError: transaction [email protected] failed precheck with status ...
7 votes
2 answers
165 views
Trying to send funds to a long zero (0x0000...0abcd) address isn't working
I'm trying to send hbar to a long zero address using ethers.js and it's not working. I converted an accountId (0.0.5465603) to a solidity address (0x0000000000000000000000000000000000536603) but I can'...
0 votes
1 answer
94 views
setup hedera local network
I'm trying to run a Hedera local node locally, and I'm following the docker set up instructions followed by these instructions to set up a localhost network, but then hoping to change the connection ...
4 votes
1 answer
201 views
How do I set metadata for a Fungible Token on Hedera Token Service (HTS)?
I have successfully created a FungibleCommon token on Hedera Token Service (HTS), and I am able to set the memo field without any issues. However, when I attempt to set the metadata for the token, the ...
3 votes
1 answer
128 views
Is it possible to update an existing (ECDSA) account on Hedera to use Multisig & Threshold Keys for Signing?
I have an existing ECDSA Hedera account I've created. I would now like to be able to update this account to be a Multisig account (using three other keys) with a threshold of 3/3 (so all keys have to ...
2 votes
1 answer
268 views
Convert ED25519 private key from hexadecimal encoded string to DER
Using JavaScript and Node.js, how can I reliably convert an ED25519 private key (used on Hedera Testnet) from hexadecimal encoded string format to DER encoded? Example input value: ...
-1 votes
1 answer
64 views
Can we use Hedera JSON-RPC relay to deploy contracts and make signed transactions?
Got error while deploying smart contract in Hedera Hashgraph using local relay. Hi, I'm trying to deploy a smart contract in Hedera Hashgraph using web3.js. We are running a JSON RPC relay in an EC2 ...
0 votes
1 answer
100 views
Get signature from HSM
I'd like to use an HSM to sign my Hedera transactions but I get an error. In order to create a repeatable example I tried this package com.managination; import com.hedera.hashgraph.sdk.*; import org....
4 votes
2 answers
222 views
How do I use `PrivateKey` and `PublicKey` from Hedera SDK to encrypt and decrypt data?
I have created several accounts in Hedera, and have their PrivateKeys and PublicKeys available in the Hedera SDK. I am able to use these to create signatures on data, and verify signatures on data, as ...
1 vote
1 answer
59 views
Why does `getRecord()` fail because of a `_logger` related error? (using Hedera SDK)
The following code throws an error when .getReceipt() is invoked. Note that the transaction itself is successful. const hcsTopicCreateTx = await new TopicCreateTransaction() .freezeWith(...
1 vote
2 answers
73 views
How to query the (ordered) account IDs for a set of lazy-created accounts created by a `TransferTransaction` to EVM addresses on Hedera?
I've done the following steps 1 through 3, and figuring out how to complete step 4. (1) Generate several several EVM addresses (evmAddress*) locally, and those EVM addresses do not have accounts on ...