Questions tagged [cpp-ethereum]
The Ethereum C++ client.
377
questions
0
votes
1
answer
19
views
do I need to hold ETH (for tokens) in my wallet to receive ERC-20 with value?
I want to receive ETH (ERC-20) which was initially converted from BTC to ETH and sent to my wallet with 0 value.
Do I need to hold ETH in my wallet in order to activate ETH tokens to receive real ETH ...
0
votes
0
answers
16
views
ETH tokens sent to BNB address in Safe Wallet
Some ETH tokens have been sent to a BNB safe address in Safe Wallet. To recover them I have followed this procedure: https://share.zight.com/z8uBKZYr.
The wallet owner of the Safe Wallet is: ...
0
votes
1
answer
40
views
Some one make a fake token transfer from my friend wallet without having his PK
Now how is that possible? https://etherscan.io/address/0x781C2EA34506d904573E7E92be19154B729B2EE5#tokentxns
this guy send 65 ETH to an address but some scammers sent 65 ETH token(fake) with his ...
0
votes
0
answers
13
views
I exchanged scam tokens,pls help me [duplicate]
I exchanged ETH for scam coins through BYBITWEB3 on UNISWAP, now they cannot be sold on BYBITWEB3 DEFI (he writes that the contract has closed source code) and when trying to reverse exchange through ...
0
votes
0
answers
6
views
If two persons split the minting process payment 80-20% on opensea , what are the rights and risks of each one on NFT?
I am new to NFT minting.
I created a collection and am about to create a NFT .
Someone has a buying customer on opensea for my Artwork to be minted. He suggests to pay 20% of the minting fees while I ...
0
votes
1
answer
8
views
How I decrease the gas fee when I call the contract method?
Deploying my contract on rinkeby cost ~12 USD in gas fees (using truffle cli). Is it possible for me to specify gas fees/set a limit in the smart contract so it costs me 0.5 USD, but takes longer to ...
0
votes
0
answers
6
views
Lost ETH using BOT [duplicate]
I am a newbie and saw a video in YouTube about setting up ETH contract using BOT. The code was also given by the YouTuber. I created the contract and linked it to MetaMask and then transferred ETH to ...
0
votes
1
answer
40
views
Failing while trying to deploy ETH SAFE on BASE. What am I missing?
I tried following the steps outlined here:
https://help.safe.global/en/articles/40812-i-sent-assets-to-a-safe-address-on-the-wrong-network-any-chance-to-recover
https://share.zight.com/z8uBKZYr
This ...
0
votes
1
answer
36
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 ...
0
votes
1
answer
22
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 ...
2
votes
1
answer
72
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: ...
0
votes
0
answers
17
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 ...
0
votes
2
answers
227
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 = ...
0
votes
1
answer
75
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 ...
0
votes
1
answer
62
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 ...
1
vote
0
answers
23
views
Good extensions for both Foundry & Hardhat
Hello i'am looking for good vscode extension for both foundry & hardhat. Thank you for your feedback !
1
vote
1
answer
45
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, ) = ...
1
vote
1
answer
164
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 ...
0
votes
0
answers
75
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&...
0
votes
1
answer
31
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 ...
0
votes
0
answers
29
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 ...
0
votes
1
answer
200
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 ...
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 ...
1
vote
2
answers
333
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 ...
0
votes
3
answers
601
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 ...
0
votes
1
answer
443
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 ...
1
vote
0
answers
89
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.
1
vote
0
answers
72
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 ...
1
vote
2
answers
174
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....
1
vote
0
answers
27
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 ...
2
votes
0
answers
41
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:
...
0
votes
2
answers
97
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(...
0
votes
0
answers
64
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 ...
0
votes
0
answers
36
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 ...
0
votes
1
answer
22
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 ...
1
vote
1
answer
243
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 ...
2
votes
2
answers
673
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....
0
votes
1
answer
393
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 ...
0
votes
0
answers
109
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 ...
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!
2
votes
1
answer
235
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[] ...
0
votes
1
answer
13
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?
1
vote
0
answers
494
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 ...
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 ...
0
votes
1
answer
365
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
185
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
70
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
230
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 =...