Questions tagged [cpp-ethereum]

The Ethereum C++ client.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 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&...
user avatar
0 votes
1 answer
9 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 ...
user avatar
0 votes
0 answers
8 views

What is the special encoding used for branch nodes in the MPT state tree

The branch node, because the key in the MPT tree is encoded as a special 16-binary representation, plus the last value, so the branch node is a 17-length list. So What is the special encoding used for ...
user avatar
0 votes
0 answers
14 views

Returned error: replacement transaction underpriced and Returned error: exceeds block gas limit

I'm trying to send a Web3JS transaction for a SmartContract (BSC) but it always returns Returned error: replacement transaction underpriced and if I increase the Gas it generates Returned error: ...
user avatar
1 vote
0 answers
170 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 ...
user avatar
0 votes
0 answers
10 views

Fork eth.limo to be eth.<insert domain>?

Looking to fork the eth.limo github , but am having trouble getting the process started. Is there any tips/methods to use in order to fork it and implement eth.(insert domain) instead of eth.limo? Ex:...
user avatar
0 votes
0 answers
99 views

Get ERC20 Token balance returns Cannot read properties of undefined (reading 'balanceOf')

I am trying to get the balance of tokens on a specified wallet address but i keep getting the error Cannot read properties of undefined (reading 'balanceOf') I have done several searches and cant seem ...
user avatar
0 votes
0 answers
49 views

Implementing custom token payment into ERC721 minting app

How do I implement a custom token as payment, into an ERC721 contract? Here I am trying to use the EIP20.sol This keeps throwing an error. "Warning: Unused function parameter. Remove or comment ...
user avatar
0 votes
1 answer
23 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.
user avatar
  • 11
0 votes
0 answers
16 views

Batch Uniswap Eth Liq Pull Possible?

Due to a contract bug, the liq pull function from uniswap is being limited by the max token transfer limit of 0.5%. Is it possible to mitigate this through a batch transaction to avoid the baseline ...
user avatar
0 votes
0 answers
9 views

How can I build a DApp that uses several blockchains (or several tokens)

Can I build a DApp that receives several tokens as payment like ETH, BNB, WAX and so on? If so, how can I do it?
user avatar
  • 1
0 votes
1 answer
33 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; ...
user avatar
0 votes
0 answers
29 views

How would I go about combining ERC721 and ERC20 tokens into 1 contract?

I have wrote my ERC721 contract and it is working fine. I wish to also receive ERC20 tokens, in addition to my current ERC721 tokens. How would I go about doing this so I can either execute a function ...
user avatar
0 votes
1 answer
85 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 ...
user avatar
  • 1
0 votes
0 answers
49 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 ...
user avatar
  • 1
0 votes
0 answers
19 views

Deploying From Unlocked Account To forked Mainnet

I forked mainnet and unlocked an account. I then wrote my smart contract. In my deployment script, I have: const TokenSwap = artifacts.require("TokenSwap"); module.exports = function (...
user avatar
0 votes
0 answers
24 views

my ether got transferred to another account without my permission

My ethereum metamask account is 0x5E927734820f3bd1a8f3AFcDfC88D5cC89056aD3 and the moment friend of mine sent me ether, it was automatically got sent to some another account. This is the transaction ...
user avatar
  • 1
0 votes
0 answers
19 views

How do i send a written message to an eth address [duplicate]

I suffered a scam. I thought if I sent another payment I could access a memo section where I could then actually send them a written message. Using trust wallet I have not seen this. Is this possible? ...
user avatar
0 votes
0 answers
80 views

Encode function call with parameter value

I'm trying to encode a function call to retrieve the tokenURI of a token from an ETH contract. I'm using web3.py as follow to encode the function signature. However I don't know how to pass the ...
user avatar
0 votes
0 answers
4 views

Having trouble testing my old Eth fork upload in metamask

I had a Dev fork Eth in 2018. I am having problems reaching the dev on my blockchain and am trying to test my blockchain with the coins i have in cold storage. When i try to load in my network rpc and ...
user avatar
  • 1
0 votes
0 answers
5 views

Warning: Return value of low-level calls not used [duplicate]

function swapAndSendToDev(uint256 tokenAmount) private lockTheSwap { swapTokensForEth(tokenAmount); uint256 devAmountETH = address(this).balance; payable(devAddress).call{value: ...
user avatar
0 votes
0 answers
51 views

How to pay for gas withdrawal from staking via web3js?

const Web3 = require('web3'); var Tx = require("ethereumjs-tx").Transaction const provider = new Web3.providers.HttpProvider("https://bsc-dataseed.binance.org/"); const web3 = new ...
user avatar
0 votes
0 answers
110 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 ...
user avatar
0 votes
0 answers
100 views

Ethereum coinbase wallet to Etherscan, but balance is not showing in my Niftygateaway

Hello can anyone help me with the next please: We've transferred ETH from coin base wallet to Etherschan to have it converted to nifties then funded to NG. obviously, for the deposit, we scanned the ...
user avatar
  • 1
0 votes
0 answers
45 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; ...
user avatar
0 votes
1 answer
35 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 { ...
user avatar
  • 7
0 votes
1 answer
101 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 ...
user avatar
  • 1
0 votes
0 answers
14 views

I have eth to pay for gas but metamask does not allow me to withdraw?

I am trying to withdraw a metamask token to an external wallet, I have ETH to pay the Gas of the transaction and when selecting the token that I want to withdraw and the amount tells me that I do not ...
user avatar
  • 1
0 votes
1 answer
77 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 ...
user avatar
2 votes
0 answers
33 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 ...
user avatar
0 votes
0 answers
21 views

can hacker hack all adress accounts in the same metamask wallet by one sub account's private key [duplicate]

the private key of one sub account of my metamask wallet is exposed on the web (github), I try to avoid to use this sub account, can hacker still get acess to other sub accounts in the wallet?
user avatar
  • 1
0 votes
1 answer
17 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 ...
user avatar
0 votes
0 answers
31 views

How to host JSON RPC API using cpp-ethereum

I installed the cpp-ethereum on my local using https://github.com/ethereum/aleth After launched the aleth on Ubuntu, RPC server is not working properly. When I tested the RPC API on Postman, it ...
user avatar
  • 123
0 votes
1 answer
53 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/...
user avatar
0 votes
0 answers
12 views

Getting Uniswap token pair price feed with C++ [duplicate]

I am trying to find out if I can interact with Uniswap via web3 using C++ rather than JS but I don't know if it's possible to use web3 with C++. Any opinion or solution will be appreciated.
user avatar
0 votes
1 answer
165 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
user avatar
0 votes
2 answers
275 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/...
user avatar
2 votes
1 answer
386 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?
user avatar
  • 108
0 votes
0 answers
555 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" ...
user avatar
0 votes
1 answer
443 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 ...
user avatar
  • 13
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 ...
user avatar
0 votes
0 answers
153 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 ...
user avatar
1 vote
0 answers
327 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
  • 1
0 votes
0 answers
14 views

make your stablecoin decrease in value and pay dividents

is it possible to create a stablecoin and make it decrease in value and pay out dividents on a monthly basis on the ethereum network?
user avatar
0 votes
0 answers
40 views

Export aleth(ethereum c++) to geth (go-ethereum) blockchain data

I have the private aleth network, but want to test some new features, so I want to move to geth. But didn't find any instructions how to get it to work. Here is a couple of questions: Is it anywhere ...
user avatar
0 votes
1 answer
26 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
user avatar
0 votes
0 answers
116 views

error: 'Error: Invalid JSON RPC response: "user project is inactive

I am trying to get the balance of an ethereum wallet in my own website. I am using the following code to do so. PS: network parameter contains whether the network is mainnet or testnet. The code is: ...
user avatar
1 vote
1 answer
315 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 ...
user avatar
1 vote
0 answers
25 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, ...
user avatar

1
2 3 4 5
7