Questions tagged [blockchain]

The Ethereum blockchain is a distributed database based on the Ethereum whitepaper specification and stores both the full transaction list and the most recent state.

Filter by
Sorted by
Tagged with
0 votes
1 answer
3 views

Want to import data from firebase realtime database to smart contract writen on solana blockchain

I am making a token on Solana blockchain and want to give the token to certain uses for that I need data from my firebase Realtime database. I am little bit confuse How to get my data on smart ...
user avatar
0 votes
0 answers
7 views

why creating new wallet doesn't cost any gas, though its using network storage to store account details?

Creating new wallet doesn't cost us any gas, but the account state and account information is stored in Ethereum blockchain, which is using networks storage and as we can see the details of account in ...
user avatar
0 votes
0 answers
7 views

Is it possible to create Partitions in ERC20 security token

Am a beginner in Blockchain and learning writing smart contracts so do pardon me if question doesnt make sense as i have seen the ERC1400 security token and as per my findings Erc1400 looks better in ...
user avatar
0 votes
1 answer
10 views

how blocks are selected during the process of IBD

From what I understand during the Initial Blockchain Download we are connecting with other peers and download blocks which they are sharing with us. Two things comes to my mind. First - are we ...
user avatar
0 votes
0 answers
28 views

Error on calling read-only public functions in a contract deployed on mumbai testnet

I have deployed my NFT and marketplace smart contracts on Mumbai Testnet chain. When I interact with the smart contract using my Mumbai testnet account everything works fine. But when I use any other ...
user avatar
1 vote
1 answer
8 views

How to understand if a contract has been renounced programmatically?

Is there a way to query the blockchain to find out the current owner of the smart contract programmatically? I mean not the address that deployed the contract, but the one that is currently the owner. ...
user avatar
0 votes
0 answers
8 views

API for find smart-contract deployed which chain?

Is there any API which gives me details that project smart-contract deployed on which chain via its smart-contract address? e.g. How to know whether it deployed in polygon, avalanche, ethereum? If is ...
user avatar
0 votes
1 answer
18 views

Is it possible to to deploy a smart-contract written in Solidity, on Solana?

Hope you all are doing great, I code in Solidity and now I have this requirement to convert Solidity code into Rust for Solana. While figuring out a way I came across with Solang. I'm looking for ...
user avatar
0 votes
0 answers
16 views

StableSwap invariant and price computation

Having issue reproducing the price Curve.fi propose for swaping tokens. Let's take tricrypto2 pool for example. As I'm writing this, the actual balance of the pool is the following: I'm trying to re-...
user avatar
  • 1
0 votes
0 answers
5 views

CALL_EXCEPTION when calling a simple view function with ethers.js, but not in my hardhat test

UPDATE: The short description is this function works the contract is deployed on Mumbai Polygon, but fails in Hardhat locally. Details: Here is my simple function which has no issue when testing, but ...
user avatar
0 votes
0 answers
4 views

What is the difference between polygon-ethereum relationship and solana-ethereum?

I understand that side chain has some kinda 2 way connection with its mainnet. But for this connection is it inheriting something more or What is actually happening? I mean can we distinguish the ...
user avatar
0 votes
0 answers
12 views

Uncaught Error: invalid BigNumber string (argument="value", value="2022-05-18", code=INVALID_ARGUMENT, version=bignumber/5.6.0)

I created a function that registers births and use a form to submit the data. The problem is every time I try to use web3/Javascript, it gives me this error. The error is because of the dateOfBirth ...
user avatar
0 votes
0 answers
8 views

How to create a external call instance function to truffle suite

Is there a way to instantiate a function of my contract, not using the truffle console but by creating a js file? if so, how do I do it?
user avatar
  • 1
0 votes
1 answer
27 views

What does 'blockchain blindness' in the ethereum whitepaper mean?

This is from the ethereum whitepaper. Blockchain-blindness - UTXO are blind to blockchain data such as the nonce and previous hash. This severely limits applications in gambling, and several other ...
user avatar
0 votes
1 answer
15 views

What is 'value blindness' in the ethereum whitepaper?

Vitalik wrote the following in the Ethereum white paper. Value-blindness - there is no way for a UTXO script to provide fine-grained control over the amount that can be withdrawn. For example, one ...
user avatar
0 votes
1 answer
22 views

How to Use 2 NFTS metadata to create a new NFT (Breed) with Metadata JSON that they choose from the 2 NFTs

How to Use 2 NFTS metadata to create a new NFT (Breed) with Metadata JSON that they choose from the 2 NFTs.
user avatar
0 votes
0 answers
5 views

How to text search / filter in web3?

I have created a list of ERC721 NFTs in different contracts using thirdwebsdk, I need a way to text search, for example, nfts with the name as "cat" and get the list of all nfts which has &...
user avatar
0 votes
0 answers
20 views

Wallet Connect not working on Android phone having a Android version greater than 10

I have integrated the wallet connect on a react native application, The app work perfect on the android phone that has a android version lower or equal to 10, If i run the application on a phone that ...
user avatar
0 votes
0 answers
10 views

Metamask doesn't connect to it's own localhost or hardhat localhost

Metamask doesn't connect to it's own localhost. I run a hardhat node from Mac. I know it's a known issue, but I've tried all available methods listed below. I tried installing older versions of ...
user avatar
0 votes
1 answer
18 views

if-else in Solidity Doesn't Work

Im creating a web based medicine anticounterfeit using blockchain and this is my smart contact program: // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; contract SupplyChain { event ...
user avatar
0 votes
0 answers
13 views

TypeError: ethers.Contract is not a constructor

I am using ethers.js library. I used the following line to create a contract. I used the same line previously without any issue. contract = new ethers.Contract(address, ERC20_ABI, provider); however,...
user avatar
0 votes
0 answers
9 views

How can I fix "Stack too deep, try using fewer variables" error?

Every time I try to run this solidity code, I get the Stack Too Deep error. I know what the error means but I do not know how to make it go away. And I also do not know how to transform this code with ...
user avatar
0 votes
0 answers
10 views

How can I transfer this ROI value inside RateOI function value to the contract itself and the contract Balance gets updated

contract RATE { function contractBalance() public returns(uint){ return address(this).balance ; // store = address(this).balance; // console.log(store); // store =...
user avatar
0 votes
1 answer
14 views

Is it possible to generate reports in a dapp the way you would in a regular PHP app

Is it possible to query the blockchain to give you certain transactions that have been made in a particular time frame the same way you can generate reports in a php app? For example, in the contract ...
user avatar
0 votes
0 answers
34 views

Developing a Staking and Un-staking Smart Contract

I am relatively new to blockchain, and trying to write a staking smart contract, which could stake any ERC20 token and gives APY in the same token with the following requirements: Staking of ERC20 ...
user avatar
0 votes
0 answers
14 views

Is there a way to get history of transaction of specific smart contract using chainlink?

Here is my use case I have a smart contract that emit an event . I am new to chainlink , so my question if someone know how I can track that event history with its data using chainlink. Thanks
user avatar
0 votes
0 answers
5 views

How to create an NFT that can be burned for other NFTs that are allocated randomly and have a cap on each NFT?

I am currently working on a project involving packs and cards. The concept is that there are cards in each pack. The cards must be hidden before purchase and then revealed after purchase. Since I did ...
user avatar
0 votes
0 answers
10 views

Too large of a smart contract [duplicate]

I was putting money into a liquidity mining operation that I was invited into. Now I am new at this and I honestly don't know a lot about this. What it was I had put my money in and went into see that ...
user avatar
  • 1
0 votes
0 answers
33 views

Decode input data in bigquery on polygon

I have a problem in developing a program to decode the input data of transactions created by a smart contract on the polygon blockchain. The smart contract: https://polygonscan.com/address/...
user avatar
0 votes
0 answers
13 views

How To Write a Smart Contract and JS Script that gets Data About Transactions and displays it

I wrote a smart contract that stores, read, updates and deletes data from the blockchain for my Online Birth Registration system. I'd like to know how I can write a smart contract that gets and the ...
user avatar
0 votes
1 answer
11 views

How do I retrieve the status and the congestion on a network?

So basically I have an assignment that requires me to make a web app that can get the status (up or down) and the congestion(load) on etherium mainnet, solano and bitcoin lightning networks. I am ...
user avatar
0 votes
1 answer
20 views

Send ether from one address to another every month (like EMI payment)

I want to send some amount of ether(let say 0.1 ether) on every 1st of month to another address. I have a smart contract to send ethers from one address to another but it's a manual process. For every ...
user avatar
0 votes
2 answers
23 views

What is the 'balance' keyword in Solidity?

contract Helper { function getBalance() returns (uint bal) { return this.balance; } } Is this(balance) also a keyword in solidity? Where can I find their description?
user avatar
0 votes
1 answer
12 views

Upgrade Solidity contract

i am upgrading my contract to a new implementation. I was wondering if i mistakenly put wrong positions of variables in my new implementation and get my data corrupted, can i upgrade back to original ...
user avatar
  • 101
0 votes
0 answers
15 views

Incompatible EIP155-based V 43 and chain id 3

I am trying to mint my token using Ropsten testnet, but getting this error. I checked that the chainId is correct i.e. 3 and is passed in Transaction objects second parameter. First time I have tried ...
user avatar
  • 1
0 votes
1 answer
15 views

Rinkeby offline [duplicate]

I’m newbie in using Rinkeby authenticated faucet. When I opened the site I discover that there is and indication saying OFFLINE. Is there anything that I’m not doing right. Please I need help.
user avatar
0 votes
1 answer
23 views

Does the Ethereum world state stored into DB every time when the block is mined?

The Ethereum block header stores the root hash of the world state trie, Does this means every time the state of world state is copied into levelDB for every block mined? Thanks for your answers.
user avatar
1 vote
1 answer
24 views

Fee for making a transaction Vs fee for recording a transaction

I'm in the process of learning how to write smart contracts and make transactions using the Ethereum blockchain. I'm following this tutorial and it looks like making a transaction and then adding a ...
user avatar
0 votes
1 answer
30 views

How chainlink oracle works incase of state update?

I was trying to understand this pizza sample build by Patrick Collins. so my understanding is that when we send a transaction (for example store which stores a user provided number) all the nodes in ...
user avatar
0 votes
0 answers
59 views

Error: Transaction reverted: function returned an unexpected amount of data, Pancakeswap

I really need your guy's help as I'm stuck in this for a week. Actually, I'm implementing a swap function on pancakeswap, I'm following this documentation. I'm doing swapEthForExactTokens but getting ...
user avatar
0 votes
0 answers
12 views

What is evm_increaseTime function and can we use it for real world blockchain or only for testing smart contracts?

I have been going through evm_increaseTime and evm_mine functions but not able to detail it properly and having doubts with following questions: What is evm_increaseTime function? Where do we use ...
user avatar
0 votes
0 answers
17 views

How to read the code of a contract deployed on vechain

I tried to read the code of a contract deployed on Vechain by using vechain-explore. For example how do I convert the code on the photo to something readable? I tried using conversion from hexadecimal ...
user avatar
  • 3
0 votes
1 answer
11 views

Encryption or hashing with data

The data which we send via Ethereum blockchain , is it ecrypted and sent to sender only & never stored on blockchain OR is it hashed ? Hashing is a one way process . It means that the data once ...
user avatar
0 votes
0 answers
18 views

What is the formula to check difficulty on Ethereum genesis block? given ex: genesis block difficulty = 0x0400

I am having trouble understanding something related to calculating difficulty. Target difficulty is described as 2^256 / difficulty . The difficulty of the genesis block is notated as 0x0400 which is ...
user avatar
0 votes
0 answers
8 views

Adding a peer to a local ethereum node created with the --dev flag

I have created a node using the following two commands: geth --datadir --http --dev --http.corsdomain "https://remix.ethereum.org,http://remix.ethereum.org" --networkid 1234 -allow-...
user avatar
  • 1
0 votes
1 answer
25 views

I am following the Wormhole SDK to bridge from Fantom to Terra. and while I try to get signedVAA I got < ReferenceError: self is not defined>

const WORMHOLE_RPC_HOSTS = 'https://wormhole-v2-testnet-api.certus.one' const { signedVAA } = await getSignedVAA( WORMHOLE_RPC_HOSTS, CHAIN_ID_TERRA, emitterAddress, ...
user avatar
0 votes
0 answers
12 views

how can i connect to multiple blockchain nodes?

I want to connect to multiple blockchain nodes. For example, if I want to get my balance from Ethereum (or EVM compatible blockchain ) and Solana (Non-EVM compatible blockchain) I have to connect to ...
user avatar
0 votes
1 answer
13 views

Cannot add JSDOC comments in .sol file in VS Code. Any help?

I have been trying to use JSDOC comments in my smart contract files (as many contracts already have), but my VS Code seems to be not picking up the structure using the usual commant of /** */ Although,...
user avatar
1 vote
0 answers
12 views

In Ethereum private network public IP node and private IP node peer is possible?

In Ethereum private network one node in AWS EC2 instance with public IP and another is in local machine with private IP. Is is possible to peer this two node using boot node. Is it possible to peer? ...
user avatar
0 votes
0 answers
25 views

Implementing custom taxes on pancake swap

I wanted to implement a custom tax for pancake swap. currently, iam using pancake swap testnet ones. iam stucking at these points. how to add custom tax for on swapping or at time of creating ...
user avatar

1
2 3 4 5
56