Category "blockchain"

Failing tests -> Cannot read properties of undefined (reading 'rpc')

I was writing a test in TypeScript for Adding two numbers. I am receiving the following error: Adds two numbers: TypeError: Cannot read properties of undef

TypeError: Unknown file extension ".ts" in a Solana Anchor project

I got this error after updating Solana-cli to 1.9.4 and Anchor-cli to 0.20.1 and other local npm versions... Local npm package: @project-serum/anchor 0.18.2 Sol

ethers.js Contract object gets error: Uncaught TypeError: Cannot read properties of undefined (reading 'map')

I hope someone can enlighten me. I have a website with a button which should create a new Contract object of my token contract via the ethers.js library. I succ

Solana. Need to export all addresses from the blockchain to the DB

I found a way: https://docs.solana.com/developing/plugins/geyser-plugins OR https://github.com/solana-labs/solana-accountsdb-plugin-postgres But for this need t

How to set up block chain locally

I have created a app to make transactions of money from one account to other, for that we have created a ledger table in mysql which runs in my local host very

Get all NFTs of an Account on Flow Blockchain

Can I get a list of all NFTs to an account on the Flow Blockchain? There is account storage and the documentation says ...Cadence represents each NFT as a reso

where has geth fast-sync mode gone?

I'v read several articles about geth full sync mode which can be enabled by --syncmode full option. But why am I getting error unknown sync mode fast want full

How to concat two string values in Solidity

Concat two or more string values- pragma solidity 0.8.9; contract StringConcatation{ function AppendString(string memory a, string memory b) public pure re

TradingView Timezone Setting Issue

For now, I'm making a trading website for trading some tokens. But there is one issue in the time zone setting. The year of the mouse focus label shows the inc

Hierarchical organizations in Hyperledger fabric

I want to create fabric network in which the organizations are forming hierarchy i.e. At the top there is District Organization under that the two organizations

'export' in VS code show problem statement "Declaration or statement expected." and cannot find name 'WEB3_INFURA_PROJECT_ID' and 'PRIVATE_KEY'

I am trying to create a ERC20 standard token using VS code by following a Youtube video https://www.youtube.com/watch?v=8rpir_ZSK1g . Until I reached the .env f

Error: Could not identify the intended function with name 'swapExactTokensForTokens'

I'm trying to swap tokens using swapExactTokensForTokens() (Pancakeswap Router function), web3 imported in Python. Here's my code and error below. Please be spe

How to create a ZkSync account?

The ZkSync documentation states that a deposit has to be made from an existing Ethereum account to a non-existing ZkSync account counterfactually in order to cr

How to download ganache on windows?

I've been trying to download ganache on my windows machine, but I keep getting a 'failed authorization' error message.

No matching declaration found error in Solidity

The code I have: function approveRequest(uint256 index) public { Request storage request = requests[index]; require(approvers[msg.sender]); require

I am getting an error while installing Truffle on windows. Does anyone know how to fix this

This is the error I was getting while installing truffle through nom -g install truffle. Does someone knows how to fix this issue and also got error after insta

Import web3 not found... in solana web3.js

I npm installed everything, yet only web3 is not working? Is this a bug or is there an alternative to this solution? import React,{useEffect, useState}from 're

fabric invoke chaincode error: Failed to get endorsing peers: no endorsement combination can be satisfied

I have set up my fabric network with 3 orderers in one organization and a consortium with 5 organizaitons successfully. Each organization has only one peer node

Corda check session.send/receive completeness

I am currently creating some custom flows, sending back and forth some data through the session. I noticed that in some cases (for example if a responder flow h

MetaMask RPC error? 'MetaMask - RPC Error: Internal JSON-RPC error.'

I'm developing the front-end to an application that I'm trying to test. However, MetaMask keeps giving me this error? I tried changing the gas limit like previo