Questions tagged [hedera-hashgraph]

Questions related to development on Hedera Hashgraph distributed ledger

Hedera () is an open-source, Distributed Ledger Technology that includes services for EVM-compatible smart contracts, file service, consensus service, token service, and a schedule service. Check out "What is Hedera?" for a an overview, and docs.hedera.com for developer documentation.

Hedera uses its own Hashgraph consensus to secure the network and its transactions, and it is a faster, more energy efficient, and more secure alternative to blockchain consensus mechanisms. Participation as a consensus node is currently permissioned by the Hedera Council, with an intention to transition to a permissionless network in the future.

128 questions
0
votes
1 answer

How can I mint a Hedera token that is not owned by the contract I am using to mint it?

I want to mint a Hedera Token with a smart contract. This token is not owned by the smart contract I am writing. I have been told on the Discord to 'put the private key in the contract' but this is not very specific and feels weird. The mintToken…
samuelnehool
  • 147
  • 15
0
votes
1 answer

Gorm: How to store a struct in a field

I am trying to save an hederea contract ID of type *hedera.ContractID into a Gorm field but i get the error "invalid field found for struct github.com/hashgraph/hedera-sdk-go/v2.AccountID's field AliasKey: define a valid foreign key for relations or…
mev
  • 177
  • 5
0
votes
2 answers

getting error on associating token in hashgraph/sdk. "publicKey._toProtobufSignature is not a function"

// TOKEN ASSOCIATION WITH ALICE's ACCOUNT let associateAliceTx = await new TokenAssociateTransaction() .setAccountId(aliceId) .setTokenIds([tokenId]) .freezeWith(global.client) .sign(aliceKey); //SUBMIT THE…
0
votes
2 answers

Accountid & PublicKey returns different transactions for 0.0.1261794

I am using hedera offical api in code, for accountid 0.0.1261794 getting 2 transactions only where as publickkey e2cc4c84391f5d9fd74dcf8199fb0bcd9c629f4d9aaa223649aad2814c56e6ba associated with 0.0.1261794 accountid, return more than 20…
0
votes
1 answer

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 solidity ^0.8.0; import…
Yasuo
  • 31
  • 3
0
votes
3 answers

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 systematically get a CONTRACT_REVERT_EXECUTED…
Aobara
  • 11
  • 3
0
votes
1 answer

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, AccountBalanceQuery } =…
Rocky Singh
  • 25
  • 1
  • 5
0
votes
1 answer

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 couple of hours later, the same code is failling…
Cchor
  • 21
  • 6
0
votes
1 answer

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 Service - we would be looking to continue using…
Waylon Jepsen
  • 61
  • 2
  • 7
0
votes
1 answer

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.g. if User A owns two NFTs of the same token ID…
Ed Marquez
  • 488
  • 1
  • 10
0
votes
2 answers

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?
Waylon Jepsen
  • 61
  • 2
  • 7
0
votes
1 answer

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…
Waylon Jepsen
  • 61
  • 2
  • 7
0
votes
1 answer

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 properties of null (reading 'token' )
Ed Marquez
  • 488
  • 1
  • 10
0
votes
2 answers

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, HederaPreCheckStatusException { //Grab…
0
votes
1 answer

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-BND1DE3sUR7GMm4lgw3B3D94OT4NuL&index=8&t=774s which explains how hashgraph works…
1 2 3
8
9