All Questions
Tagged with cpp-ethereum cpp-ethereum or
383 questions
0
votes
1
answer
395
views
ETH wallet issues
I use Coinomi wallet and everything was ok untill I tried to add my wallet to another system like MEW and Metamask
I use same recovery phrase but I end up with different account with no money there. ...
-1
votes
1
answer
2k
views
Mining pool rewards erc-20 smarts contract [duplicate]
I was contacted from a girl of Singapore,she told me to join the website PETL.top,with 1k of buying USDT erc-20,every day I withdraw 30 dollar,but today I accept this partecipation for the claim the ...
0
votes
1
answer
217
views
-32000 Execution Reverted - Simple AAVE Price Oracle request
I'm currently in the early stages of learning solidity and diving into the blockchain world; I do have prior programming experience.
I'm currently stumped on something that seems rather trivial, but ...
0
votes
0
answers
123
views
Ethereum wallet recovery
I was trying to sign into my old wallet inherited using Keystore JSON and password and I am getting the error "private key do not satisfy curve"
Please help me out
0
votes
0
answers
18
views
Invalid Opcode Error SHR [duplicate]
call to UniswapV2Factory.INIT_CODE_HASH
call to UniswapV2Factory.INIT_CODE_HASH errored: Internal JSON-RPC error.
"code": -32000,
"message": "invalid opcode: SHR"
I'...
0
votes
2
answers
244
views
I have a problem in my Smart Contract in Withdraw Function
function withdraw () public OnlyOwner {
for (uint i = 0 ; i<= funders.length ; i++) {
address funder = funders[i];
addresstoFund[funder] = 0 ;
}
funders =...
0
votes
1
answer
622
views
Did I get scammed? Created solidity smart contract and can't withdraw [duplicate]
Hoping this isn't the case but I created a smart contract based on a youtube video, I know feel like a moron, and glanced at the code and it seemed legit. I own the smart contract, but I can't ...
0
votes
1
answer
19
views
How do I clear out all the saved entries in mapping?
How do I clear out all the saved entries in mapping after the data is no longer useful
1
vote
1
answer
885
views
How can I send signed transaction that calls a contract method and also sends some eth with it?
Looking for a way I can send a signed transaction using web3 which will transfer some tokens tha the user grants along with some eth that he decides to donate.
I have a tx object like this:
var baller ...
0
votes
1
answer
57
views
Somebody wan to to send me eth tokens and asked me to send him fee first .. is this the normal way to do it?
Somebody wants to send me eth tokens and asked me to send him fees first .. is this the normal way to do it?
1
vote
3
answers
1k
views
Bundle of Transactions
I have been studying some articles about MEVs on the Ethereum network and met FlashBots which provides security for MEV Bots
That is a bundle propagation service which receives bundles from searchers ...
1
vote
2
answers
752
views
Is there any way to transfer ETH in a contract function just like transferFrom for ERC20 tokens?
I know that you can request an authorization and the transfer of ERC20 tokens from a contract user to another address with approval() and transferFrom().
But it here any equivalent to do the same for ...
1
vote
0
answers
159
views
geth error exceeds block gas limit"
im running a local geth node to increase transactions speeds for nfts minting however during a nft mint that had a contract set Gas limit to 250k there was gas wars and eth gwei went up to 500 gwei ...
1
vote
1
answer
67
views
New testnet and what to know after Eth merge and existing test nets deprecation
I am just starting to learn solidity in depth and with Eth merge coming, Rinkeby and few other test nets will be depracated.
I tried to get some test Eth with Rinkeby and Sepolia but constantly fail ...
2
votes
1
answer
203
views
Measure gas left in block in solidity
There is a gasleft() to check how much gas left for my smart contract execution in solidity. But how is it possible to check how much gas left in block?
I am having quite a big solidity function, and ...
0
votes
0
answers
24
views
How to set variable of contract from another contract constructor? Solidity [duplicate]
I have a contract
// SPDX-License-Identifier: MIT
pragma solidity ^ 0.8.15;
contract MomContract {
bool public failed =false;
constructor(){
new Son(address(this));
}
...
0
votes
1
answer
140
views
im working on getting a connect wallet button functioning but i keep getting an error
import { useEffect, useRef, useState } from "react";
import Head from "next/head";
import {providers} from "ethers";
import styles from "../styles/Home.module.css&...
0
votes
1
answer
19
views
Putting consolidated events data on Blockchain
Our Dapp emits several events related to user activity on the platform. This activity is very crucial to access some of the premium features of the Dapp i.e your activity score will determine whether ...
1
vote
0
answers
4k
views
How to use Web3 with C++?
So this is less of a question about how to use web3 for C++ but rather where to start learning how to use and install Libraries for C++!
Related: How to interact with contracts in C++ application?
In ...
0
votes
1
answer
27
views
Which ways do I have to get ethereum node?
I want to know which ways I could get ethereum node besides setting up one on my own server.
I need node in order for my application to work with ethereum blockchain.
0
votes
1
answer
51
views
Truffle - Solidity Mapping unable to access via JS
Good day,
I am currently new in Solidity development, hope you can help me with this one.
I have this contract that states:
contract Shop {
struct Item {
string name;
string description;
...
0
votes
1
answer
394
views
Please tell me about the solid parameter byte []. After abigen compilation, the parameter in golang becomes [] [] byte. How should I construct this?
Please tell me about the solid parameter byte []. After abigen compilation, the parameter in golang becomes [] [] byte. How should I construct this?
// Multicall0 is a paid mutator transaction binding ...
0
votes
0
answers
245
views
buildTransaction for swapExactTokensForETHSupportingFeeOnTransferTokens
I'm a beginner with Web3 programming. Trying to understand how all it all works.
Managed to get some nodejs code working for buying tokens but when trying to create a script that sells tokens I get an ...
0
votes
0
answers
244
views
Transaction HexBytes('0x5b167dc993642d75287b01d906cdaf287efd3ee726fyg65fyihihiihy687guiyguygtf5uuttytfytfytd') is not in the chain, after 120 seconds
import json
from web3 import Web3
In the video, we forget to install_solc
from solcx import compile_standard
from solcx import compile_standard, install_solc
import os
from dotenv import load_dotenv
...
0
votes
0
answers
74
views
Why I can't push items into this array?
it's very tricky,
when in the truffle , I call f(),it can't push an item into addressArray.(console.log(addressArray[0]) always unidifined))
but when I use Remix, it worked.
pragma solidity ^0.6.6;
...
0
votes
1
answer
51
views
Is the smart contract receiving funds or is it the address?
//SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
contract ExceptionExample {
mapping(address => uint) public balanceReceived;
function receiveMoney() public payable {
...
0
votes
1
answer
1k
views
How do I have the Eth in one contract pay for the gas costs for operations in another contract?
I've got a semi-newb question about paying for gas to make an operation happen in Solidity. Can someone tell me whether something like this would worK? And if it can be done, if someone could point me ...
0
votes
1
answer
183
views
Function not working on Truffle, but works on Remix
I have a contract that does the following:
It maintains a list of items, which stores the name, id, sold status etc.
I have a function, createItem, which creates these items and requires the name of ...
2
votes
0
answers
39
views
Web3.js but for C++ [duplicate]
Does anyone know a library for interacting with Ethereum smart contracts through C++? Just like there's web3 for JavaScript.
If not, any guidance on how I can interact with Ethereum smart contracts ...
0
votes
1
answer
22
views
Website that sends eth to a specified adress
I'm trying to make a button on my website which allows people to send Ethereum to a specified address. Once clicked, it should for example pop up a MetaMask window where the user can enter the amount ...
0
votes
1
answer
158
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/...
0
votes
1
answer
255
views
cant go make a local host account
i had a local host 8545 account and accidentally deleted it but i have no idea how to get it back. and it just keeps saying Could not fetch chain ID. Is your RPC URL correct? and im just on a pc
0
votes
2
answers
700
views
I get an error whenever I try to deploy on BSC testnet. It only works on the ETH mainnet. The source I am using is on BSC
I cant deploy this source code myself on BSC even though the creator can, I can only deploy it onto the ETH testnet, not BSC.
Here is the original contract: https://bscscan.com/address/...
2
votes
1
answer
932
views
Send transaction with Brownie without confirmation wait
Is there is a way in Brownie to send a transaction without waiting for confirmation, like an async way?
0
votes
0
answers
888
views
How to send BNB (or other networks) with web3 on a dapp?
So, I tried the many examples found around but I never manage to get it working.
I have this snippet:
async function pay(cost) {
code = 0
message = "Please approve the tx"
...
0
votes
2
answers
1k
views
Create a MAX SUPPLY to Mint ERC20
I want to create an ERC20 on Solidity.
I want 1000 TOKENS of MAX SUPPLY (Like the 21m of bitcoin).
PERSON A: Mint to his wallet 700 Tokens. (Thats okey)
Only 300 Tokens are available.
PERSON B: Mint ...
0
votes
1
answer
3k
views
How I send tether token on metamask?
I have 1053 USDT and 0.0028 ETH in my metamask wallet.
I want to send 1000 USDT to other address but I faced "Insufficient funds." for ETH.
So, I think I can swap 53 USDT to ETH. But faced ...
0
votes
1
answer
493
views
Forgot password of eth keystore v3 mist wallet keystore!
I have my ethereum keystore v3 , it is mist keystore file , but it also may login from myetherwallet site,I forgot password to it,I tried lexansoft,but all alphabet so long to try,I will write my hash ...
1
vote
0
answers
774
views
Why don't we have an EVM integration library written in C++?
We have web3.js for JavaScript, web3j for Java and NEthereum for Unity/.NET.
I want to develop with Unreal Engine (C++) a game that runs on Polygon, but there's no integration library in C++.
Should I ...
0
votes
0
answers
35
views
Old eth network accounts do not appear after reinstalling metamask
I have a serious problem.
I switched from Note and in the new Note I restored Metamask using my phrases.
The installation worked.
Inside the Metamask of the old note I had the ETH network with two ...
0
votes
1
answer
30
views
I transfered ERC-20 token to the wrong Efinity address [duplicate]
I transfered ERC-20 token to the wrong Efinity(NFT blockchain on Polkadot) address,how to get it back? Someone plz let me know
1
vote
1
answer
893
views
Is there Blocks Pruning in ethereum clients specialy geth? (and other questions)
Is there Blocks pruning in ethereum clients such as geth and how does that work?
by pruning I meant, does the blocks information whether stored in DB like in cpp-ethereum are deleted if the ...
1
vote
0
answers
51
views
questions on block (and header) storage in ethereum, how is it stored along with tries?
I understand that ethereum uses Trie to track the state, transactions, receipts. and each trie has key-value pair that is stored in the database.
Each blockheader also has the root has of stateRoot, ...
2
votes
0
answers
62
views
Why does Ethereum use RLPx over TLS?
Ethereum encrypts data sent between peers. What are the reasons for implementing RLPx over TLS?
2
votes
0
answers
112
views
What is Ethereum's protocol stack regarding cryptography?
Resource 1 says that “There is no encryption as part of the Ethereum protocol—all messages that are sent as part of the operation of the Ethereum network can (necessarily) be read by everyone. As such,...
0
votes
1
answer
2k
views
How get private key from eth address public key/address
By mistake I send "TRU" erc20 token in a ether address and can't access it now. I have only eth address and public key of this address. How to get private key from eth address or using ...
0
votes
1
answer
229
views
How to securely send a message
I was wondering that can I encrypt a string, send it to a smart contract, for that to be decrypted only by some address's private key?
e.g "Hello" to be encrypted in a way that it would be ...
1
vote
0
answers
123
views
Experimental data on transaction propagation time
Does anyone have empirical data on how long does it take to propogate a transaction thought out most of blockchain?
I know we can speculate on how long it would take (like here). But I am interested ...
1
vote
1
answer
322
views
Not able to use --testnet flag on geth windows
I have a problem where if put
geth --testnet removedb
it says
flag provided but not defined: -testnet
Im on windows 10 x64. Thanks in advance!
1
vote
0
answers
257
views
Listening to smart contract events RPC, using web3, on aleth node
bakcground,
I am working on an ethereum based fork of cpp-ethereum/aleth node and not using the official golang client (geth), unfortunately from what I read, websocket support has been 'ditched' in ...