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
0answers
15 views

How can I make my contract reusable?

I want to create a Coin Flip game on Ethereum blockchain. I have one contract called CoinFlip. It has functions that enables one player to make a bet, second player can accept the bet, then the flip ...
0
votes
1answer
19 views

How to send transaction to 1 specified block?

I'm interact with Ethereum using Web3js . How to send transaction to 1 specified block ? CASE : I want to send transaction to specified block is 1111 . I have tried listening Block Number but when ...
0
votes
0answers
17 views

How to get NFT metadata from marketplace

I am looking for something that interacts with an NFT marketplace.(like https://marketplace.axieinfinity.com/axie/) I want something that will check this NFT marketplace and when it finds one within a ...
0
votes
1answer
11 views

finding the sequence of functions executed when interacting with a contract

I have interacted with a contract on BSC Blockchain and know I want to know the sequence of functions executed with my transaction. I got my hands on transaction GETH traces using BSCscan but that ...
0
votes
0answers
21 views

this.state.manager returning an empty array

I've made a solidity contract which was deployed perfectly. Now, when I'm connecting with it my react Dapp after getting the ABI and address and trying to render it, it renders nothing. my web3.js ...
0
votes
1answer
17 views

How to use web3 to send ETH from wallet A to wallet B through an intermediary Smart Contract?

I want to send eth from 1 wallet address A to wallet B address but through an intermediary Smart contract, what should I do? I don't know how to solve that problem yet. EX: https://bscscan.com/tx/...
2
votes
3answers
293 views

How does a smart contract "run on a blockchain" under-the-hood?

I'm quite new to the blockchain technology and I would like to understand a few concepts for which I couldn't find an in-depth explanation online. All the resources I examined so far explain the ...
0
votes
1answer
12 views

How do people support querying blockchain transactions in a fast way?

I am thinking to build some business transactions on blockchain and have deployed a test network by ganache and truffle. It works fine and I am able to see the blocks and transactions on ganache-ui. ...
0
votes
1answer
26 views
+100

Restore from ethereum keystore file results in an unusable private key

I have a keystore file from an old ellipal wallet with some eth with it. The corresponding password is correct (I can use it to display the private key and keystore in it) and I can also run the ...
0
votes
1answer
33 views

Implement saving a number in a secure way on chain

There are a lot of questions like this, but before you close this one look closely. Please have a look at this smart contract contract StoreWithSecret { uint256 private secretNumber; ...
0
votes
0answers
27 views

Generating random number in smart contract using the random attribute of assets prices in liquidity pools

I'm aware of the disaster in relying on block.timestamp and block number when generating random numbers. But what do you think of XORing the prices of multiple ERC20 tokens using the getAmountOut() ...
1
vote
1answer
56 views

How to simulate buy?

im new in web3js and i got a problem. Would be nice, if you could help me. Ive been trying to solve it myself for days... Im trying to simulate a buy transaction (after its working i will do the sell ...
1
vote
0answers
11 views

How do I know whether a private network is using proof of work or stake or authorize?

I know there are three types of protocol proof of work or stake or authorize, I am using geth --datadir data/node1 --http --dev --http.corsdomain "*" --http.api web3,eth,debug,personal,net,...
0
votes
1answer
13 views

How to mine ether from a private network?

I launched a private network by using geth --datadir data/node1 --http --dev --http.corsdomain "*" --http.api web3,eth,debug,personal,net,miner --allow-insecure-unlock --mine command. I am ...
0
votes
0answers
20 views

Can I still list my token on exchanges if I have renounced ownership?

This is my first post here. I have deployed a ERC20 token and have a few holders already. I am keen to renounce ownership of the contract to build trust. However, will I still be able to list my token ...
0
votes
0answers
10 views

'Invalid account name or access token' when deploying to Thegraph

I'm currently working on deploy a subgraph to the hosted service on thegraph. It's to track volume and liquidity of a new token on the bsc. The thing is, I'm using a v1 clone from PCS, and everything ...
0
votes
0answers
13 views

Smart contract that recognizes Tweets made by each Twitter user [duplicate]

Is there a way for a Solidity smart contract to interface with Twitter accounts or Twitter API to recognize the number of "relevantly tagged" tweets that account made? For example, an ERC-20 ...
1
vote
1answer
12 views

Can a blockchain only store transaction proofs or any kind of data in it?

I am currently studying about the blockchain technology. Everywhere they say that transactions on a blockchain cannot be tempered with. I assumed any kind of data can be stored in a blockchain. But in ...
0
votes
0answers
14 views

Is it possible to get revert reasons using CallContract method? If not how can I get revert reason using ethClient in go Ethereum?

I'm using the below functions to get the revert reason : func ErrorReason(ctx context.Context, from common.Address, tx *types.Transaction, blockNum *big.Int, ethClient ethclient.Client) (string, error)...
0
votes
0answers
28 views

Reward the players base on the token they holds

I'm planning to build a game similar to spaceports, in which they reward the player based on the amount of token they hold, they don't need to buy any NFT item. they also have a limit per day reward ...
0
votes
0answers
8 views

Does deploy a smart contract create a new block in blockchain?

I am new to Ethereum and blockchain. I created a simple contact and use Remix to deploy it to a test network. The code: // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; ...
0
votes
0answers
6 views

How does frontrunning work in EVM chains?

I'm not sure if i can ask about other chains, but since Harmony is EVM based i thought i would give it a try. I coded a very simple script that should buy an item (i don't think it's an NFT) from a ...
0
votes
1answer
20 views

How to obtain transaction creation time for Ethereum transactions using web3?

I am interested in analysing transaction latency in Ethereum (time it takes from creating the transaction until it has been added to a block). I have been looking at Web3 (link https://web3js....
0
votes
0answers
22 views

Can MetaMask connect to other blockchains besides Ethereum?

MetaMask is a web browser extension that allows users to connect to the Ethereum network called Mainnet. This network is essentially the Ethereum blockchain. Can MetaMask also connect to any other ...
0
votes
1answer
16 views

Is storage replicated through instances of deployment?

Say a contract has money stored in it and has already been uploaded to the blockchain. If I somehow get the source code to that contract and want to deploy that myself will the money that is stored in ...
0
votes
0answers
8 views

Do any consumer/customer participate in ICO?

Many people buy tokens in ICO for selling them in a higher price in the future. Maybe we can call this type of participants the investors. But I am wondering how many consumers/customers who want to ...
0
votes
1answer
56 views

{ code: -32000, message: 'insufficient funds for gas * price + value' }

I'm a beginner in blockchain and facing a huge problem while deploying my smart contract with Truffle. first my simple contract... pragma solidity ^0.8.10; contract Inbox{ string public message; ...
0
votes
0answers
11 views

How Can send tokens to another wallets ? (web3js) [duplicate]

I have learning to blockchain and I want to send some popular crypto tokens (such as Dogecoin, Shiba Inu, ...) from BEP20 wallet to other (using by by Web3js) How i can do it? I understood must using ...
0
votes
0answers
11 views

solana - /node_modules/@toruslabs/eccrypto/index.js: 'return' outside of function

I am using vue for solana development. The library I use is @solana/wallet-adapter error shows: /node_modules/@toruslabs/eccrypto/index.js: 'return' outside of function Since the example is only for ...
0
votes
0answers
9 views

Can a server "impersonate" an user account on Ethereum blockchain?

I have a question, maybe a newbie question but, I would be glad if you guys help me. Well, I wish to do all my smart contracts interactions by server-side, for instance: An user wants to create his ...
1
vote
1answer
34 views

Is there any effort to prevent using web3/blockchain to host ilegal content?

I am not aware of any web online blockchains could prevent being the next host of pedophilic contents, piracy or way to permanently difamate people publicly. Is anyone aware on how such moral issues ...
0
votes
1answer
20 views

What is the correct way for them to buy my crypto only with ethereum?

I am making a token for a play to earn game, and I would like that token, only to be bought with Ethereum, that it cannot be bought with any other cryptocurrency, that way I would only receive ...
0
votes
1answer
18 views

Where does geth download it's data, the actual blockchain state?

We know that we can sync with current blockchain status with geth, for example, or any other similar things. If I run geth in console I can see ... INFO [11-16|22:27:56.602] Imported new block ...
0
votes
1answer
19 views

How to encode function signature besides parameters using eth_abi

I want to encode a contract's function signature together with parameters and values using python, more explicitely the eth_abi library. tokenA = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"...
0
votes
0answers
11 views

Can you store extra data (e.g. text) within an NFT that is only accessible to data buyers?

I want to create a marketplace. Ideally, I want data owners to mint their NFT into the marketplace. The NFT data will consist of: picture (shown to other people in the marketplace) text data (e.g. ...
0
votes
1answer
14 views

account defined in genesis.json has no existence when private node started using geth command

I copied go ethereum source from heco git repository compiled and used following genesis.json file { "config": { "chainId": 24, "homesteadBlock": 0, "...
0
votes
0answers
30 views

How to listen Metamask's web3's "confirm"/"reject" button in Celo Blockchain?

I do not find any code to catch the confirm/reject button clicking event (img below) on chorme extension (Metamask). I'd like to modify it using the DOM.
1
vote
1answer
13 views

Member "slice" not found or not visible after argument-dependent lookup in struct Ballot.Proposal storage ref[ ] storage ref

I'm new to solidity, I'm writing a smart contract for ballot process but getting the error in my ballot function in the line proposals = proposals.slice(0, _numProposals);. I've traversed all the ...
0
votes
1answer
18 views

Does the gas fee increase, when variable (a mapping type) in my smart contract is getting bigger

In my smart contract, I have the following property struct MyStruct { uint256 property1; uint256 property2; } mapping(address => MyStruct) private structs; In one function, this struct is ...
0
votes
0answers
51 views

Why I need smart contract for arbitrage

To make arbitrage between two defis why i need a smart contract? web3py or web3js can interact with defi smart contracts. A script can monitor price difference and if find arbitrage opportunity script ...
2
votes
1answer
39 views

Can’t Install Eth-Brownie on Windows 10

Good evening! I'm going through the Free Code Camp Solidity/Blockchain tutorial and for the life of me, I cannot get Brownie to install properly. When I try and install through pipx I get the ...
0
votes
0answers
37 views

How to get pending transaction counts using web3-react?

I'm sure this question was asked before, but I did not find any result that helped my problem. I wanna get pending transaction counts in Metamask using web3-react. Are there any simple solutions that ...
0
votes
0answers
9 views

What is internal and external messages in Free Ton

Cannot really understand what's the difference between external and internal messages in Free Ton. Where should we use one or the other. Thanks.
0
votes
1answer
22 views

What does the clock symbol mean in Metamask

I just want to ask what the clock symbol means in Metamask? Thanks
0
votes
0answers
149 views

Getting the Liquidity Pool Address of a token using web3.py connected in Binance Smart Chain

The snippet below checks for the latest added Liquidity Pool of a token. In poocoin.app, the LP Pool Address can be checked based on the pair (TOKEN/BNB LP Holdings). I wanted to know if web3.py can ...
0
votes
0answers
12 views

If I buy/sell a NFT on a Level 2 crypto based on ETH, is that NFT stuck on that other currency's block chain?

I do not quite understand what 'rollups' are or 'level 2' mean. Let's say I sell/buy an NFT using Matic, which is Level 2 to ETH. Would that NFT forever have to be transacted using Matic? I would ...
0
votes
0answers
10 views

How to get merkleProof on ethereum?

I interact with a contract on ethereum. Where do I get bytes32[] _merkleProof?
0
votes
0answers
15 views

get transaction hash

I want to know the transaction hash that already done. The transaction is called tr in my code. Credentials credentials=Credentials.create("account address") ; web3= ...
1
vote
0answers
93 views

Help. I have reached an issue that is preventing me from installing Brownie

I can't for the life of me install Brownie completely through Pipx, Septuptools, or anything. Because my python command doesn't seem to work as normal. Preface: So I installed everything that I was ...
0
votes
0answers
28 views

How to simulate buy/sell to know taxes like honeypot.is does?

I am trying to know how much tax on sell and buy are needed before buy. How can I do that in nodejs ?

1
2 3 4 5
48