Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [cpp-ethereum]

The Ethereum C++ client.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Cannot Remove Liquidity

My open trading in the contract is ‘false’ and i don’t have the function to change it to ‘true’. I have not renounced it yet, can i still have any ways about it to rectify this and remove the ...
Sid's user avatar
  • 1
0 votes
0 answers
9 views

Run a node for a noob

I'd like to ask you for your best advice on running an ETH node. I want to start investing in it. What are the best tips for a beginner ?
user135316's user avatar
0 votes
1 answer
22 views

Best Practices for Gas Optimization in Ethereum Smart Contracts

Ethereum community! I'm currently working on developing a smart contract for a decentralized application (dApp) on the Ethereum blockchain. I'm concerned about optimizing gas usage to enhance ...
Ian Park's user avatar
0 votes
1 answer
18 views

How to enable multi-payment in the NFT marketplace like ETH, USDT, MATIC, DAI, etc?

Hope you are doing great. I'm trying to build a NFT marketplace with multi-payments. When users buy a NFT, they must be allowed to pay with any of the payments such as ETH, USDT, MATIC, DAI... How to ...
Vara Prasad's user avatar
2 votes
1 answer
59 views

C code to sign a message compatible (such that can be verified) with Metamask, mycrypto, etc

I am on macOS and trying to put together the code to sign (and once I succeed to verify) a message with an Ethereum private key. So, the private key (just used to test, no funds there lol) is: ...
capodieci's user avatar
0 votes
0 answers
15 views

Possible to use CallContract during validation (on block not yet included in blockchain)?

I'm building a consensus engine. Already built a prototype of it, and now interested in improving it (mostly simplifying the implementation so it fits better with existing Ethereum codebase with least ...
BipedalJoe's user avatar
0 votes
1 answer
115 views

How to get raw transaction from v, r, s signature

My question is what would convert transaction fields r, s, v to rawTransaction. Can I see a transaction in the mempool and get its signature and raw? here is an example vrs: raw = ...
404's user avatar
  • 33
0 votes
1 answer
44 views

web3py Force send eth transaction at the same block without conformation or any errors

My question is how to force send a transaction via web3 or any other way without paying attention to errors. I know that I will pay for the commission if I am not successful and that will suit me. I'm ...
404's user avatar
  • 33
0 votes
1 answer
57 views

can eth_call() make this?

I have a contract and inside the contract there is a non-payable function that can call externally. this function do some analysis,and calls other payable function than can make real transaction using ...
Biruk Damte's user avatar
1 vote
0 answers
22 views

Good extensions for both Foundry & Hardhat

Hello i'am looking for good vscode extension for both foundry & hardhat. Thank you for your feedback !
PandaKungFuu's user avatar
1 vote
1 answer
33 views

how to revert transaction excuted by low level call

Hello ethereum community. I'm experimenting with low level calls and i want to revert the transaction made by low level call, if i didn't get the desired result. Is it possible? (bool success, ) = ...
Biruk Damte's user avatar
1 vote
1 answer
117 views

Why Golang was chosen to implement ethereum protocol?

I know there are many implementations of the Ethereum protocol, i.e. the first implementation in Python, or other implementations using C++, C#, and Java. As go-ethereum has gained lots of attention ...
Ehsan Khodarahmi's user avatar
0 votes
0 answers
62 views

approve spender to swap

i'm trying to swap using 1inch aggregator api and when i try to swap, it says "Not enough allowance. Amount: 4600000000000000. Allowance: 0. Spender: 0x1111111254eeb25477b68fb85ed929f73a960582&...
Biruk Damte's user avatar
0 votes
1 answer
30 views

Dose contracts must be deployed?

I see js programmers compile and call solidity contract without actually deploying it using hardhat and/or similar tools. Do they really can use the contract without deploying on the chain(like swap ...
Biruk Damte's user avatar
0 votes
0 answers
27 views

Eth::Client::ContractExecutionError - transaction underpriced

I am using the eth gem ruby library https://q9f.github.io/eth.rb/ to execute a function called from the ABI but it keeps getting the error transaction underpriced. I assume that it has something to do ...
javanoob2pro's user avatar
0 votes
1 answer
149 views

1Inch with flashloan provider

Is there a way to trade on 1Inch using the API and flash-loaned balance. If it is possible please give me some info. I was seeing the DOC to find how to integrate the flash-loan provider with 1Inch ...
Biruk Damte's user avatar
0 votes
0 answers
13 views

Flashloan script does not return GAS or loan amount [duplicate]

I got the script from get-flashloan website. The script requests loan and performs arbitrage and then the profit can be withdrawn. The problem with the script is, it deducts the balance from the smart ...
engageub's user avatar
1 vote
2 answers
255 views

UniswapV2's equivalent of getPair and other functions

i see uniswapv3 quoter or factory or router contracts doesn't have getPair, getReserve and other similar ABI functions like UniswapV2. does UniswapV3 have Equivalent for this functions? or did they ...
Biruk Damte's user avatar
0 votes
3 answers
421 views

REWARD!! PLEASE CAN SOMEBODY HELP ME ETH STUCK - I am a newbie trying to create a trading bot. and came across a tutorial, my 1.1eth stuck Metamask! [duplicate]

SORRY ABOUT THE GRAMMAR AND SPELLING I HAVENT SLEPT FOR ALLMOST 2 days BECAUSE OF THIS.. Here is a bit of a back story on why I have become a little desperate lately to find ways to make crypto faster ...
GTR ARGH's user avatar
0 votes
1 answer
332 views

getAmountsOut and sushiswap user interface shows different result

Hello eth communities.. I am trying to interact with ethereum chain using programming and I'm using getAmountsOut to get swap path quote using sushiswap's contract. But the result in my vscode and ...
Biruk Damte's user avatar
1 vote
0 answers
87 views

Can I make a contract call to refund the unused gas fee to a specific address instead of the msg.sender?

Can I make a contract call to refund the unused gas fee to a specific address instead of the msg.sender? I want to use this as a means of charging fees for my project.
Benjamin's user avatar
1 vote
0 answers
65 views

Uniswapv2 "quote" ABI

I am trying to sign contractof Uniswapv2 on ethereum mainnet using "quote" ABI. the function is quote(uint amountA, uint reserveA, uint reserveB) I use c++ to make the raw transaction and ...
Biruk Damte's user avatar
1 vote
2 answers
140 views

how does swapExactTokensForETHSupportingFeeOnTransferTokens work and its inputs

I tried many things on inputs but unfortunately I am just receving a gas error (the one that says would likely fail if continued) How does the function input works exactly? uniswapV2Router....
Lupus7's user avatar
  • 11
1 vote
0 answers
26 views

Reduce gas price?

I'm working on a sniping bot on uniswap, and i have a little problem : the first ones to buy are those who pay the most. Pretty logical, but I don't really want to pay 300$ in priority gas to be the ...
Newly Sama's user avatar
1 vote
0 answers
34 views

geth full node is too slwo.Only about 50 blocks can be synchronized per minute

geth full node is too slwo.Only about 50 blocks can be synchronized per minute However I use snap mode to sync very quickly. Unfortunately what I need receipts for all transactions. this is my server: ...
Mashaji's user avatar
  • 11
0 votes
2 answers
89 views

transferring USDT from metamask to smart contract

I'm trying to transfer USDT tokens from my metamask account to another address(which is variable in smart contract) through method call. if I use transfer method, I'm getting not enough balance(...
GiorgiSh's user avatar
  • 119
0 votes
0 answers
55 views

BSC Testnet and ETH Testnet, I want to copy/fork a contract in eth which is evermoon, but I always get an error with the gas and it always fails

This is the error it gives me, can you help me fix this problem, I adjust the gas limit, it started from 3000000, to 30000000, but still the transaction failed. I tried in bsc testnet using ...
Penny Coin Hunter's user avatar
0 votes
0 answers
28 views

How to verify and publish a contract address source code to withdraw erc2o tokens

Created a contract sometimes back while playing with eth contracts tutorials, by mistake I sent some some erc20 tokens only to later loose control of the creator address. Stuck between letting it go ...
Murathe's user avatar
  • 11
0 votes
1 answer
21 views

I want to retieve data from contract A that has been already stored in the contract B by contract A?

dex.sol(contract A) //SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./storage.sol"; contract dex1{ storage_contract public contractaddress; constructor(address ...
kumar's user avatar
  • 61
1 vote
1 answer
200 views

Signing messages in cpp

I am trying to execute eth transactions from cpp. For that we need to be able to sign messages using Elliptic curve algorithm. I have found this repo, but output signature is different from what we ...
Jatin Garg's user avatar
2 votes
2 answers
536 views

How to retrieve 1 eth I send by mistake to my smart contract token?

This is the contract as you see there's one eth there https://etherscan.io/address/0x19d71f00354ad302e89ca47e59b68917f9a871d7#code. I still have ownership of contract. My eth stuck in smart contracts....
meme coin's user avatar
0 votes
1 answer
338 views

Unsellable tokens bought on DEX: Smart contract to get back funds

I bought token via Uniswap which are not unseellable. I read somewhere that we can deploy a contract on the same account of the token for swap the token in eth. I wrote a code and before deploying it ...
Mickael Belhassen's user avatar
0 votes
0 answers
101 views

How it works? 4 transactions in 1 block

This address withdraws tokens from different accounts as shown above. His steps: He sends BNB to the address where there are tokens to pay the token withdrawal fee. Gas price 60 gwei Withdraws ...
Катя Иванова's user avatar
0 votes
1 answer
35 views

Where can I get Goerli Test Ether? Can someone provide me with some? Thank you very much! [duplicate]

My address is: 0xDA866378188C6C455C6f624353cF5d3475484e4e Thank you very much!
zhuhoim's user avatar
2 votes
1 answer
191 views

TypeError: Member "WETH" not found or not visible after argument-dependent lookup in contract IUniswapV2Router

My code below // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Router { function getAmountsOut(uint amountIn, address[] memory path) external view returns (uint[] ...
AbdulRehman's user avatar
0 votes
1 answer
12 views

How Should I Fully Remove The LP

My project is fail few months ago, and i removed the LP today, and i found there is some earned LP is not withdrawable. Can somebody guide me how to fully withdraw it?
Asking For Help's user avatar
1 vote
0 answers
417 views

The definition and Implementation of the Keccak256() function

So I don't know if this is a silly/obvious question or not but after many hours I turn to the community for help. So for the past few days I've been writing my own C++ code to take an input public key ...
Daemin's user avatar
  • 11
0 votes
1 answer
1k views

How can I add Rinkeby in Metamask?

I have a problem: I can't add Rinkeby Test Network in Metamask. First, I tried to add it from settings -> show test networks(on) and it doesn't work. Then I tried to add it manually and I created ...
Craig Reid's user avatar
0 votes
1 answer
349 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. ...
Kirik's user avatar
  • 1
-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 ...
Rey's user avatar
  • 1
0 votes
1 answer
165 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 ...
user114847's user avatar
0 votes
0 answers
63 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
drey 's user avatar
0 votes
0 answers
17 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'...
Gask's user avatar
  • 1
0 votes
2 answers
207 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 =...
YASH BONDE's user avatar
0 votes
1 answer
438 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 ...
ddub512's user avatar
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
OPP's user avatar
  • 11
1 vote
1 answer
792 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 ...
user avatar
0 votes
1 answer
43 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?
CYBERMAGIC STUDIO's user avatar
1 vote
2 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 ...
Kraune Texas's user avatar
1 vote
2 answers
619 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 ...
Sebastien VAX's user avatar

1
2 3 4 5
8