Questions tagged [cpp-ethereum]

The Ethereum C++ client.

Filter by
Sorted by
Tagged with
0
votes
0answers
32 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
1answer
22 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
1answer
16 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
0answers
9 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 ...
0
votes
1answer
23 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
0answers
25 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
0answers
14 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?
0
votes
1answer
9 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
0answers
19 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 ...
0
votes
1answer
23 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
0answers
11 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.
0
votes
1answer
36 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
2answers
98 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/...
1
vote
1answer
85 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
0answers
268 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
1answer
132 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
1answer
2k 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
0answers
74 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
0answers
93 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
0answers
24 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
0answers
8 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?
0
votes
0answers
31 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 ...
0
votes
1answer
24 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
0
votes
0answers
56 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: ...
1
vote
1answer
83 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
0answers
15 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, ...
0
votes
0answers
20 views

is cpp-ethereum/aleth full node or archive node by default?

I know that cpp-ethereum/aleth is no longer maintained but we are interested in forking it and keeping it alive in some ways. I cant find and option on the console arguments for it to switch as a full ...
2
votes
0answers
24 views

Why does Ethereum use RLPx over TLS?

Ethereum encrypts data sent between peers. What are the reasons for implementing RLPx over TLS?
1
vote
0answers
38 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
1answer
343 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
1answer
69 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 ...
0
votes
0answers
31 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 ...
0
votes
0answers
21 views

Geth --dev node block explorer

I want a block explorer for my geth dev node for ERC20 token tracking. Is there any code that allows me to do this?
0
votes
1answer
95 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
0answers
156 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 ...
3
votes
1answer
2k views

Web3: Get token address from pair address

I am studying all listed pairs on Pancakeswap. I get the pair address from PCS_FACTORY_ADDRESS="0xca143ce32fe78f1f7019d7d551a6402fc5350c73" PCS_FACTORY_ADDRESS = Web3.toChecksumAddress(...
0
votes
0answers
36 views

How to solve this ”invest“ problem in an ico contract?

like so pragma solidity >=0.5.0 <0.9.9; interface ERC20Interface{ //Mandatory functions function totalSupply() external view returns(uint); function balanceOf(address tokenOwner) ...
1
vote
0answers
107 views

Query ethereum from C++

I was wondering if its possible (essentially if there exists a library) to query a node (either IPC or RPC) on ethereum. For example there is web3(py,js), there is ethereum in golang and probably ...
0
votes
0answers
11 views

running cpp-ethereum nodes for local development

I cant seem to find how to start my local only private node just for development purposes. like I want to run my node and i want to have a list of addresses with balance test eth on my local machine ...
0
votes
0answers
10 views

ETH sent to contract address, how to get it back? [duplicate]

Instead of transferring my ETH token to my wallet, I accidentally sent it to some contract address, this one: 0xE592427A0AEce92De3Edee1F18E0157C05861564. Is there any way to get my ETH back?
0
votes
1answer
185 views

How To Verify A Coin Without Original Contract Source Code?

We are new to crypto. A while ago we created a coin (3DOM coin) with 14,000,000,000 units and stored them in our wallet on myetherwallet.com. We would like to deploy the token now but we do not have ...
2
votes
0answers
67 views

Running a SPV wallet on Arduino/ESP32?

I want my ESP32 to make transactions and check for the details of blockchain using a secure method. Actually, I want to use make calls to the blockchain instead of relying on a single node. In my ...
1
vote
1answer
63 views

Whats the point of modifiers? [duplicate]

So let's assume the following code: modifier Owner() { if (msg.sender == owner) _; } function uploadContent() external Owner { uploadContent() .. } Why not use this? function checkOwner() ...
1
vote
1answer
177 views

Compilation Error while using ChainLink

I am using Remix IDE for my smart contract development. I am using the following import line import "https://github.com/smartcontractkit/chainlink/blob/develop/evm-contracts/src/v0.6/...
0
votes
1answer
116 views

I tried to send eth from Metamask (in balancer) but transfer is looking failed but I loss my eth(90$ around) What I should do?

I tried to send eth from Metamask but transfer is looking failed but I loss my eth(90$ around) What I should do?
1
vote
1answer
136 views

Simple way to send gasless Transactions

I was wondering if there is a way for a user to pay transaction fees for another user, meaning user A sign the transaction and user B send it to the network and pays the gas fees. I found a solution ...
0
votes
0answers
12 views

Is it possible to install 2 geth ethereum nodes with one external ip?

I want to install 2 nodes in one local network, will I succeed? and what is needed for this?
0
votes
1answer
32 views

pending transaction on eth blockchain

i still waiting from 4h for my transaction. I know de gwei is low but what you think it will be processed. 0xb69c181d38bcd157d07a623b5c1b620e6694644626bc1ed48e984ed089933e86
1
vote
0answers
28 views

Ethereum NFT options

I am looking at producing a set of NFT's that are a set of 100, the item does not have an image, but is a token to run through an algorithm, I want them to be limited whole NFT's, not ERC-20s. I am ...
0
votes
0answers
33 views

sent etc classic to my eth address on hotbit

i sent my etc classic on coinbase to my eth address on hotbit. hotbit is now trying to get money from me to try and help. is there any other way to recover these tokens? i've been researching for ...

1
2 3 4 5
7