Questions tagged [blockchain]

A blockchain is an open, distributed ledger that can record transactions between two parties in a verifiable and permanent way. The ledger itself can also be programmed to trigger transactions automatically.

A blockchain – originally block chain – is a distributed ledger that is used to maintain a continuously growing list of records, called blocks. Each block contains a timestamp and a link to a previous block. A blockchain is typically managed by a peer-to-peer network collectively adhering to a protocol for validating new blocks. By design, blockchains are inherently resistant to modification of the data. Once recorded, the data in any given block cannot be altered retroactively without the alteration of all subsequent blocks and the collusion of the network. Functionally, a blockchain can serve as "an open, distributed ledger that can record transactions between two parties in a verifiable and permanent way." The ledger itself can also be programmed to trigger transactions automatically.

Blockchains are secure by design and are an example of a distributed computing system with high Byzantine fault tolerance. Decentralized consensus can therefore be achieved with a blockchain. This makes blockchains potentially suitable for the recording of events, medical records, and other records management activities, identity management, transaction processing, and documenting provenance.

Definition taken from Wikipedia - Blockchain

One of the most well-known use-cases is cryptocurrencies, but can be used for distributed agreement on other things.

6711 questions
1
vote
1 answer

gob error encoding body: gob: type not registered for interface: in golang

During RPC communication, the server cannot calculate the correct value. I'm getting this error, and I've been thinking about it for a long time. Can you give any advice package main import ( "crypto/ecdsa" "crypto/elliptic" …
kojaejin
  • 11
  • 1
1
vote
1 answer

Error occurred when trying to send rpc requests(s): eth_sendRawTransaction

I want to SignContract and then SendTracsaction, var mintMsg = new TransferFunction() { TokenAmount = 1, To = "0x6f78e96E4cDeca2F1e121f23Bc2effBaaea05E8f", Nonce = 57, GasPrice = 5, …
1
vote
1 answer

TypeError: _bundlr_network_client__WEBPACK_IMPORTED_MODULE_0__ is not a constructor while using metaplex.nfts().uploadMetadata()

I'm using this metaplex javascript SDK for working with nfts on solana blockchain. While uploading the metadata for an nft, I am getting the following error: TypeError: _bundlr_network_client__WEBPACK_IMPORTED_MODULE_0__ is not a constructor Code…
1
vote
1 answer

How can I connect to already deployed smart contracts with Go?

I'm a budding blockchain dev, and I've been using Go to dive into things as that's the language I'm most comfortable with. I've at an impasse now, and hope I can get some help. Pretty much all the tutorials I've seen on working with smart contracts…
SnoopBoard
  • 65
  • 1
  • 6
1
vote
1 answer

what does VRFCoordinatorV2Interface(vrfCoordinator) mean in chain link documentation

I know that VRFCoordinatorV2Interface is an interface and we put the respective chain coordinator address in it. what does it signifies and how to visualise it. OR What will be the outcome when we put an address in a interface.
1
vote
0 answers

Concurrent Ethereum account creation takes lot of time and freezes the ethereum n/w

I am bit new on Ethereum Blockchain and I wanted to create several ethereum accounts concurrently something like as shown below. I am using Geth to spin up my Ethereum n/w. Till the count is 15, there is not much delay. But as i start increasing the…
1
vote
1 answer

npm in browser causing module specifier error

I have imported a module into my project. When running it separately it works fine. As soon as I want to use it in the browser it causes problems. Uncaught TypeError: Failed to resolve module specifier "theblockchainapi". Relative references must…
24Doggi
  • 59
  • 3
1
vote
2 answers

Solidity: call a function of NFT contract from Marketplace contract, and only Marketplace has access to call it

I'am doing a NFT marketplace, and i have to implement that everytime a NFT is sold the images shuffle. The Marketplace has the functionallity to buy the NFTs so we have referenciate tha NFTs smart contract. When the function buy() is called, it…
1
vote
0 answers

Truffle throwing errors that I am using the wrong compiler (but I am not)

I am using Truffle to test migrating smart contracts in VS Code. I am trying to migrate my smart contracts but am getting an error that "Source file requires different compiler version (current compiler is 0.8.10+commit.fc410830.Emscripten.clang)".…
1
vote
1 answer

NEO N3 Blockchain - Structuring fees for multi-contract transactions

I'm learning NEO blockchain programming with Python and I've started working on a modular project where different parts are executed by different smart contracts hard-linked back together. I want to have a functionality such as: send 1 NEO to…
lj h
  • 107
  • 1
  • 8
1
vote
0 answers

WalletConnect library not performing transaction also dependency not working

I want to perform a transaction in my app using wallet connect library. Connect button is working fine, but when I try to perform a transaction, it redirected to metamask, but nothing happens. No dialog appears. Has anyone found any solution? Also…
Mukesh
  • 97
  • 4
1
vote
3 answers

How to send() or transfer() from the contract address to an account address in solidity (I mean to deduct from address(this).balance)

When the contract is deployed it has an address that we can call by address(this). My contract is receivable from an address which means I can send() or transfer() to this contract but If I want to transfer from this actual contract to any account…
Dara
  • 37
  • 1
  • 7
1
vote
1 answer

What is the usage of Context.sol within ERC-20?

When releasing the ERC-20 token, OZ(OpenZeppelin)'s util Context.sol is inherited. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the…
DongMyoung
  • 13
  • 3
1
vote
2 answers

Is it a bad practice to deploy same contract multiple time?

I have developed this application so that I can deploy contracts with same purpose by only clicking a button. Since I am using the same abi and byte code every time, I wonder if it is a bad practice? This is my dapp. async function deployContract()…
1
vote
1 answer

Get all Items from nested mapping in Solidity

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import…
1 2 3
99
100