Questions tagged [hedera-hashgraph]
The hedera-hashgraph tag has no usage guidance.
39
questions
0
votes
0
answers
14
views
Hedera Invalid Signature
I'm learning to do a minting dApp, it works fine when I mint, associate, transfer...
But now when I wanted to add hbarTransfer, I have invalid signature
What makes it don't work between this that ...
0
votes
0
answers
22
views
Hedera Signature TokenAssociateTransaction
I'm new to the world of web3 (new in coding too :))
I'm practicing doing a minting app on Hedera with Hashpack for the wallet.
I managed, to mint NFTs, connect the account with Hashpack, but I'm stuck ...
0
votes
0
answers
21
views
How to convert Seed to the PrivateKey?
I'm developing a Hedera Wallet for Flutter, and I need to convert the mnemonic to the private key.
I use the bip39 to convert the mnemonic to seed.
But how can I convert the seed to the PrivateKey?
1
vote
1
answer
27
views
Hedera Transaction Oversize error : TypeError: ContractCreateFlow is not a constructor
The below code throws "Transaction Oversize" error
const contractBytecode = fs.readFileSync("TestToken_sol_TestToken.bin");
const fileCreateTx = new FileCreateTransaction()
....
0
votes
0
answers
31
views
jnius.JavaException: JVM exception occurred: exceeded maximum
I am creating a DApp on the Hedera Blockchain using Hedera-sdk-py, a python wrapper of Hedera SDK in Java. I keep getting JVM exception occurred: exceeded maximum attempts for request with the last ...
0
votes
0
answers
39
views
Hedera-sdk-py Smart Contract Deployment and Querying
I am creating a DApp on the Hedera Blockchain using Hedera-sdk-py, a python wrapper of Hedera SDK in Java. I want to create a smart contract, deploy and query it, but I can not seem to understand the ...
1
vote
1
answer
27
views
How to get an exchange rate between USD and HBAR for use in Hedera application or smart contract?
How can my smart contract or application access USD/HBAR exchange rate info from a file on the Hedera network (Hedera File Service)?
The file I'm interested in is 0.0.112. I tried doing a query with ...
1
vote
1
answer
58
views
Transfering ERC-20 in Hedera hashgraph
I'm trying to write function which will be transfer erc-20 tokens in hedera hashgraph.
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Coins is ...
2
votes
1
answer
37
views
Change Hedera NFT metadata after minting
Is there a way to change a Hedera NFT metadata after it has been minted?
My goal is to implement similar NFT minting flow as is usually used in other NFT projects, which is to first have the prereveal ...
0
votes
1
answer
54
views
CONTRACT_REVERT_EXECUTED Hedera Smart Contract
CONTRACT_REVERT_EXECUTED
Not sure what I'm doing wrong but I'm trying to call a function and it takes in one parameter and I made sure it was correct but it still reverts. This is hedera-hashgraph ...
0
votes
0
answers
77
views
Conversion from string storage ref to bytes memory[] memory
Error:
Invalid type for argument in function call. Invalid implicit conversion from string storage ref to bytes memory[] memory requested.
Code:
// SPDX-License-Identifier: Apache-2.0
pragma ...
3
votes
1
answer
131
views
How do I mint multiple NFTs on Hedera calling TokenMintTransaction only once?
I want to mint 100 NFTs. Do I need to call "TokenMintTransaction()" 100 times?
Is there some way to mint 100 NFTs in a single API call?
Here's the code I'm using:
let mintTx = new ...
1
vote
1
answer
45
views
What causes an INVALID_TRANSACTION_START when submitting a transaction to Hedera
I am receiving the following error when I submit a transaction to Hedera:
failed precheck with status INVALID_TRANSACTION_START
This hasn't happened to me before and I'm confused.
Why is this error ...
1
vote
1
answer
39
views
Where does one access events that are emitted from a solidity contract, either via a node or a mirror?
How can I get emitted events from a solidity smart contract on the Hedera Network? My best guess is via ContractFunctionResult.
2
votes
1
answer
50
views
Minting NFTs on Hedera returns MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED
I have been trying to mint an NFT using the native TokenMintTransaction() function, but it keeps returning the MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED error. Since the documentation is terrible I ...
-1
votes
1
answer
49
views
Can we update solidity smart contract which is deployed in Hedera TestNet?
As of now I need to deploy new contract for every change in solidity. We loss all the previous data which is in old contract.
https://docs.hedera.com/guides/docs/sdks/smart-contracts/update-a-smart-...
1
vote
1
answer
100
views
Getting error "Transaction Oversize" while creating a smart contract in Hedera blockchain
My bin file size is 18kb only. I also get a solution to use IPFS but don't know how to use it. If there is any reference for using IPFS then share me plz. :
Error: PrecheckStatusError: transaction 0.0....
0
votes
2
answers
180
views
Calling a hedera smart contract function with a simple comparison operator fails with CONTRACT_REVERT_EXECUTED status
Sorry for the newbie question. I am experimenting with hedera Smart Contracts. Whenever trying to call a simple function which compares the uint argument with a uint member of the contract I ...
0
votes
0
answers
75
views
Getting an error while trying to connect to Hedera network. How can the error be in node_modules?
So this is the error `\node_modules@hashgraph\sdk\lib\channel\NodeChannel.cjs:92
}, 10_000);
I'm just setting up a basic connection to get the balance of my account. Here is my code:
const { Client, ...
1
vote
1
answer
143
views
Generating a random number from smart contract using Hedera Hashgraph
How to securely generate a random number on a smart contract using solidity from Hedera? I've been searching for an answer for a while now and looks like most of them recommend the use of Chainlink ...
0
votes
1
answer
201
views
Creating new account fails with INSUFFICIENT_TX_FEE
I've been playing around with the Hedera SDK and with it's wrapper for Python. A couple of hours ago I had a working example were I was able to create a new account with an initial balance.
Now, a ...
2
votes
1
answer
216
views
Hedera Minting DAPP, How to connect wallet
Im coming from the 'other' blockchains and not sure how we would authenticate a Hedera user on a DAPP. Essentially I need to create a minting DAPP.
I need the user to connect his wallet, pay using ...
2
votes
1
answer
1k
views
JS SDK v2.0.16 Error: 13 INTERNAL: received RST_STREAM with code 0
What does this error mean?
Error: 13 INTERNAL: received RST_STREAM with code 0
1
vote
1
answer
37
views
How do Transactions Per Second work on Hedera
Suppose I send 1000 transactions per second and the finality is 2-3 sec. Will it take 2-3 sec to finalize all of those 1000 transactions? Or will it be a finalize delay difference between the first ...
1
vote
1
answer
34
views
Is it possible to implement Hedera Consensus Service in a trust-less manner?
Is it possible to implement Hedera Consensus Service in a trustless manner? Most things that I have seen have messages passing through a centralized server to create the messages for Hedera Consensus ...
1
vote
1
answer
61
views
Is there a way to wipe an individual NFT and mint a new one on Hedera? or will all tokens with the same ID be wiped?
For Hedera NFTs, if a user wants to have the ability to clawback an NFT (wipe and mint a new one) are you able to perform that operation on a Serial Number basis or is it only at the Token ID level?
E....
1
vote
1
answer
171
views
Getting TRANSACTION_OVERSIZE error when submitting a transaction on the Hedera network
For Hedera File Service (HFS), I read that the file size limit is 1MB but each transaction is only limited to 6Kb.
The documentation says that we can use FileAppend to add the additional contents so - ...
1
vote
2
answers
40
views
Multiple submit keys for a single topic in the Hedera Consensus Service
When creating a new Topic with Hedera Consensus Service, is there a way to have more than one or multiple submitted for a single Topic?
2
votes
1
answer
112
views
Can I use smart contracts on the Hedera network?
Does the Hedera Hashgraph Network support smart contracts, and is it possible to migrate smart contracts to Hedera?
1
vote
1
answer
65
views
Is there a one to one correlation between pub/priv key pairs and account IDs on the Hedera Network?
One public key usually corresponds to one or a specific number of addresses in other cryptocurrencies based on some algorithm.
https://testnet.dragonglass.me/hedera/transactions/...
1
vote
1
answer
118
views
Error: Cannot read properties of null using the Hedera Token Service with JS SDK
In TokenMintTransaction and TokenBurnTransaction when I convert into bytes using .toBytes() and build a transaction from bytes using Transaction.fromBytes() I am getting this error: Cannot read ...
-1
votes
2
answers
73
views
Getting NumberFormatException with Hedera Java SDK setup
I am stuck at one point.
The function call is not able to read data from .env file.
This is the main file:
public static void main(String[] args) throws HederaReceiptStatusException, TimeoutException,...
0
votes
1
answer
241
views
Has anyone used Hedera Hashgraph? Is it really as fast as 100 ~ 10000/s for transactions?
I have researched some articles and videos as bellow, but want to hear more opinions.
https://hedera.com/hh_whitepaper_v2.1-20200815.pdf
https://blog.eccouncil.org/hashgraph-vs-blockchain-top-4-...
0
votes
1
answer
78
views
How HashGraph Gossip Protocol Works?
I read HashGraph paper https://www.swirlds.com/downloads/SWIRLDS-TR-2016-01.pdf and view "The HashGraph Protocol" https://www.youtube.com/watch?v=BAfsN3NW2Zg&list=PLr-...
0
votes
2
answers
89
views
Deserialization of a protobuf object in Corda
I am trying to instantiate and sign a protobuf message within a Corda flow; the original transaction is created by a JavaScript client, encoded as base64, and submitted to Corda. The Corda node ...
0
votes
1
answer
138
views
Plotting a Hashgraph Simulation in Python
I've been working on a Hashgraph simulation for some time and I'm having trouble trying to figure out how to plot data in a hashgraph data structure.
My hashgraph data structure is a dictionary ...
5
votes
3
answers
1k
views
“Gossip about gossip” protocols [closed]
Lately there is much rumor about the (patented) hashgraph consensus algorithm, which claims to have very good complexity measures. See the whitepaper:
https://swirlds.com/downloads/SWIRLDS-TR-2016-01....
0
votes
3
answers
690
views
Can anyone describe the differences in Tendermint and Hashgraph?
Can anyone describe the differences in Tendermint and Hashgraph?
We are looking to use a BFT consensus solution with mongoDb like in BigchainDb but we are wondering the differences with Tendermint ...
1
vote
2
answers
236
views
How to push transactions dynamically in hashgraph?
How to push transactions dynamically into run method of hash graph?
For instance:
In the below code, the name is published as a transaction. How to get this value dynamically. If it has to be ...