Questions tagged [cpp-ethereum]
The Ethereum C++ client.
381
questions
0
votes
0
answers
7
views
How to use the uniswap subgraph to search the pools of a token that you are deploying to the sepolia testnet?
How to use the uniswap subgraph to search the pools of a token that you are deploying to the sepolia testnet?
I have already tried with both including georli but it always returns an empty array.
url: ...
0
votes
0
answers
11
views
Is it 100% guaranteed to check an address that it is a smart contract using eth_getCode?
I'm getting a transaction from Etherium node using RPC. I need to understand if this transaction to Externally Owned Account or to smart contract address. I was advised to use eth_getCode for this. Is ...
0
votes
2
answers
23
views
Funds not showing on remix contract
I set up a contract using remix, followed all the steps but when I sent funds to the contract them aren't showing
I can see the transfer from my wallet on etherscan but can't see them on the contract
...
0
votes
0
answers
9
views
What's difference between filter for hashes and filter for full transactions?
I'am trying to understand the main difference between a filter for hashes and a filter for full transactions. Can anyone explain me this please?
0
votes
1
answer
29
views
how can i decode this transactions and see what it contain?
I'm interested in decoding the information within this transaction, which can be found at the following link:
https://etherscan.io/tx/0x1013929251687ff7f6a7e2e0c7e3caae6fd93a2342dd5ad9793ff33c5802269f
...
0
votes
1
answer
42
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 ...
0
votes
0
answers
14
views
why block.number gives underflow error on line no 101 while i am excluding the previous from the lastest so it shouldn't behave like this
below is a function snippet
the line responsible for error is below
uint256 currentBlocks = block.number;
p.endedAt = currentBlocks;
uint256 blocks = (p.endedAt -= p.startedAt);
console....
0
votes
1
answer
23
views
I'ma victim of a theft my Chromebook was stolen a couple years ago with ethereum and some other coins in my metamask account can I regain access
I was unfortunately a victim of theft. My Chromebook was stolen w/my metamask acct. It had ETH I purchased from matrixport & 700,000 Like Coins also. Is it anyway I can get access to it? Note that ...
0
votes
0
answers
12
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
24
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
36
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
40
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
27
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
21
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
63
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
11
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
80
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
102
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
116
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
77
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
63
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
54
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
22
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 ...
1
vote
0
answers
23
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
49
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
37
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
21
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
20
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 ...
0
votes
0
answers
17
views
fun project i want to create a CEX
hey i want to create a centralized exchange just for fun project and to understand how things works. Is there any good open source project and good docs for that please? Thank you !
1
vote
1
answer
104
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 ...
0
votes
0
answers
11
views
stuck transaction
I made a Gnosis wallet with some friends and basically what ended up happening was that we accidently sent a txn via the eth network to our wallet instead of sending the funds thru BSC network. We ...
2
votes
2
answers
144
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
220
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
78
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
0
answers
18
views
Do i need to send eth to a cold wallet that has a balance of 75k in order to transfer to bank account
A recovery company claims that they recovered stolen funds from GMT and in process of recovery to clients, I did lose to GMT , but did not engage the company, they called me and advised that I have ...
0
votes
0
answers
39
views
Scammy _transfer method of ERC-20 token
function _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer ...
0
votes
0
answers
17
views
How much Gas Token used in total Gas?
Users can Mint Gas tokens at a lower price and Free them when the Gas price is high in Ethereum.
In Etherscan, the available information is Gas Used. There is no more information about how much Gas is ...
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!
0
votes
0
answers
61
views
Trying to run Full Eth node geth or any other client on Raspberry Pi 4B with 2 TB SSD
I've been trying to gather some information on whether anyone is still running the nodes on RPi (Raspberry Pi), since all the guides and tutorials i could find are all pre 2023.
Also, i see that many ...
2
votes
1
answer
143
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
11
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?
0
votes
0
answers
26
views
Open Metamask with parameter
I would like to open metamask and send token specific.
I have 2 questions:
How to change token.
How to change amount.
I want to sent token MT(USDC) but when call metamask alway open sent token MATIC....
0
votes
0
answers
68
views
Help with permit Fail with error ‘EIP2612: invalid signature’
Fail with error ‘EIP2612: invalid signature’
But at the same time I do the signature itself according to the specification, corresponds to eip2612
domain = {
name: await contract.name()...
0
votes
0
answers
242
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
600
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
76
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. ...
0
votes
0
answers
33
views
How to define gas Limit in typescript eth transaction?
I am currently working on my frist dApp with React and Typescript and come across the problem that MetaMask shows no value and gas limit when signing the transaction -> next step: transaction get ...
-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
122
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
51
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