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
2 answers

Is there a way to get a variable or function from one file to another file in javascript?

I have a file for my Blockchain called gale.js, and I need the Blockchain variable to get into my miner.js file: let galeCoin = new Blockchain(); // My Blockchain Can I access this variable from my miner.js file so I can run the…
1
vote
1 answer

Update Metadata of Solana NFT Collection

So, I had launched a NFT Collection on the Solana Blockchain recently, and it got fully sold out. But I just realised that the royalties i.e. the seller_fee_basis_points are not according to my requirement. So I wanted to know how could I update the…
Khushhal
  • 51
  • 8
1
vote
1 answer

Get all transactions for an NFT on Solana

I want to collect all transactions for an NFT. For example, you can display all transactions here: https://explorer.solana.com/address/2Nzt8TYeAfgJDftKzkb7rgYShVvyXTR7cPVvpqaZ2a4V or…
1
vote
1 answer

Get relay chain blocknumber from parachain in substrate pallet

The title is quite self-explanatory, how can i get the blocknumber of the relay chain I'm connected to (Kusama) instead of my local blocknumber ? All of this in a substrate/cumulus environment
Nathan
  • 493
  • 1
  • 3
  • 13
1
vote
2 answers

Can I transfer SOL from a PDA Account to another normal account in solana?

I have tried sending sol token from my pda account to another account **pdaaccount.to_account_info().try_borrow_mut_lamports()? -= 12000; **receiver.to_account_info().try_borrow_mut_lamports()? += 12000; This only works if the account…
1
vote
1 answer

Getting an Invalid Address error when trying to write data with smart contract in truffle express box

I have a function where I insert patient's info into a mapping and it works perfectly fine on remix and in the truffle console. function createPatient (uint _SecretNum, string memory _name, uint _dob, string memory _bloodType, string memory _gender,…
1
vote
3 answers

How to find out if a transaction is finalized on Solana

How do you get the current status of a transaction on Solana with the Solana Javascript API (@solana/web3.js)? https://solscan.io/tx/4fwgX16WDwYj5hZ2t5xEHz6UUnuaTovJpMeoWWEBvuA7z1baf1qX1BW2EGZVR9ChSyJZ8akeLX6EDTadFcEcSTdy This is what I've tried,…
Berry Blue
  • 15,330
  • 18
  • 62
  • 113
1
vote
2 answers

graph-cli installs but is not getting read

I am installing @graphprotocol/graph-cli with yarn with the command yarn global add @graphprotocol/graph-cli I get the success message saying: success Installed "@graphprotocol/graph-cli@0.31.0" with binaries: - graph But when I try to check its…
DevArcane
  • 21
  • 2
1
vote
2 answers

What is the difference between "memory" and "storage" keyword

pragma solidity >=0.5.0 <0.6.0; contract ZombieFactory { uint dnaDigits = 16; uint dnaModulus = 10 ** dnaDigits; struct Zombie { string name; uint dna; } Zombie[] public zombies; function createZombie…
1
vote
2 answers

How to generate ABI for an algorand smart contract written in pyteal?

I'm coming from Ethereum smart contract development background using solidity to Algorand smart contract development using pyteal. I couldn't found any guide or resource on how to generate ABI for an Algorand smart contract because in solidity the…
1
vote
1 answer

Can I check the NFTs in a virtual machine wallet in remix?

I am learning about NFT minting by using remix to run test code on testnets. Now the function seems to be working as the ETH balance is reduced by the amount of mint price I set, but I can't check the NFTs the given wallet was holding. Is there a…
Terry Windwalker
  • 1,343
  • 2
  • 16
  • 36
1
vote
1 answer

Are there any functions in the `fungible-v2` interface for minting/burning coins?

I'd like to create a function (deposit-fungible-v2-burn (account:string amount:decimal token:module{fungible-v2})) that burns amount tokens from the account. Are there any functions in the fungible-v2 interface for minting/burning coins? It is…
1
vote
1 answer

How to restore Wallets using Mnemonic Phrases in ethersjs with compatibility to MyCrypto?

I'm curious how I can be compatible with MyCrypto in terms of Recovery Phrases using ethers.js. Lets say, I have the following Mnemonic: federal train gather tumble service amount address need tail crunch better baby which leads to a public…
MrsBookik
  • 825
  • 1
  • 7
  • 6
1
vote
0 answers

Geth doesn't sync ropsten ethereum testnet

I have 1.10.16-stable-20356e57 version geth and using SSD disk for synchronization. But it doesn't sync. I'm waiting more than a day... Tried to reinstall and clean data dir, but it doesn't work. Does anyone have same problem?
1
vote
0 answers

Cypress interact with Metamask Extension

I have a website related to blockchain. I am using cypress to execute automation testing for this site. I have problem when cypress interact with Metamask extension. Embeeded chrome in Cypress can load Metamask extentsion but With first time using:…
1 2 3
99
100