Questions tagged [ether]

Ether is the currency used in Ethereum blockchain technology. Refer: https://ethereum.org/ether Questions about Ether which aren't about programming should be asked on the dedicated Ethereum site: https://ethereum.stackexchange.com. Questions which are about programming can be asked on either site.

Ether is a necessary element — a fuel — for operating the distributed application platform . It is a form of payment made by the clients of the platform to the machines executing the requested operations. To put it another way, Ether is the incentive ensuring that developers write quality applications (wasteful code costs more), and that the network remains healthy (people are compensated for their contributed resources).

The official website of is Ethereum.org.

There's also a Ethereum StackExchange site that's dedicated to Bitcoin.

162 questions
1
vote
2 answers

What is cheaper in gas (Ethereum): Repeated if/else statements or storing an attribute as part of a struct?

I am creating a simple crypto trading card program on remix/solidity. Currently, I am storing each trading card as a uint256 in an array of length 99,999,999 indexes. Each card has its own rarity, which is calculated using its uint256 ID. I want to…
airza
  • 11
  • 2
1
vote
0 answers

Is it possible to use uniswap sdk with other than mainnet networks

Is it possible to use uniswap sdk with arbitrum, polygon, avalanche and other networks where uniswap contract is running or should I use ethers directly? Second question is it possible to interact with uniswap contract on not evm based networks like…
RomanKovalev
  • 852
  • 3
  • 10
  • 29
1
vote
0 answers

How do I downgrade my ethers.js version from 5.7.2 to 5.6.1?

I'm building an NFT Marketplace demo. Whenever I try to click on 'Create an NFT' button, an Unhandled Runtime Error pops up - TypeError: Cannot read properties of undefined (reading 'length'). Call…
MochaOverChai
  • 11
  • 1
  • 6
1
vote
0 answers

WalletConnect :- Rainbow always show MATIC when transfer other coins by WalletConnect sendTransaction in react native

I am developing react native mobile application where user can transfer their amount by external wallet (Rainbow, MetaMask). I am using 'polygon-rpc' network for my users. The thing is working as expected but when execute transfer method by my…
Pankaj Sonava
  • 519
  • 4
  • 20
1
vote
0 answers

How to call Smart Contract function from php?

I am trying to call a simple function (no parameters) from a Smart Contract currently on the Rinkeby network using php. I have an ubuntu 22.04 server with Apache, I installed composer and the ethereum-php package…
Joe Brown
  • 11
  • 2
1
vote
2 answers

Is there a way to pass verified parameters to smart contract function in Solidity?

I want to call a function named "testFunction" which takes "claimDate" as a parameter. claimDate parameter comes from a server via api. contract TestSmartContract { testFunction(uint256 id, uint256 claimDate) public payable returns (uint) { …
1
vote
1 answer

Transfer two transaction in one function

I want to pay two transactions within one function. The msg.sender should pay a fee to the contract first. The rest which is still in msg.value should be transferred to the seller. I always get an error. To clarify i tested both transactions by…
caarkii
  • 15
  • 5
1
vote
0 answers

How to properly sign an Ethereum transaction?

I'm learning Ethereum on GOlang. I work through Ganache GUI. I'm trying to make a transfer from 1 wallet to another, but I get an error at the stage of sending a transaction through the client. I think the problem is in the config where I sign the…
hey
  • 65
  • 2
1
vote
1 answer

How to deploy ganache workspace

I am having a flutter project where I have written code for Ethereum transfer. The problem is it is only working for static rpc URL like I have given IP address of my wifi. I am new to ganache, and I can't find any way in which I can deploy that…
Harsh Bhalala
  • 173
  • 1
  • 2
  • 9
1
vote
1 answer

sending a transaction requires a signer

I have an NFT Contract and I need to mint NFTs. Also I have a second contract for handling buying and selling NFTs into this contract. I am using the ethers library. this is my code for config: static async Initial(): Promise { let…
Mr Coder
  • 761
  • 2
  • 13
  • 34
1
vote
1 answer

Sell Function on Pancakeswap with Ether Library on Node.js

I am trying to swap my busd tokens for bnb (wbnb) by using pancakeswap router v2 on testnet. Though I am having CALL_EXCEPTION. Before I dive into code, I have the same issue on bscscan. I don't know if it's related but, even though I successfully…
starkm
  • 859
  • 1
  • 10
  • 21
1
vote
1 answer

Solidity ParseError: Expected primary expression

When I am compiling with truffle it is giving me this error I got this error after adding payable prior to that it was winners[j].transfer(betwa*(10000+(LoserBet*10000/WinnerBet))/10000); I had to add it because I was getting another error Which…
Mohammad Fahad
  • 81
  • 1
  • 12
1
vote
0 answers

How can I get all collections name of NFT-Token from etherscan?

I want to gain a variety of information about NFT-Tokens like collection names. How can I read the information from Etherscan or Blockchain network. What is the solution?
Amin
  • 387
  • 1
  • 6
  • 17
1
vote
1 answer

Rinkeby Authenticated Faucet not working with Metamask?

Does anyone know when Rinkeby Authenticated Faucet is going to start working again? I need to add some Ether into my Metamask wallet on the Rinkbey Test Network for testing purposes, but it seems the site is not working. I am using my Twitter to…
Dev
  • 665
  • 1
  • 4
  • 12
1
vote
1 answer

Solidiy FundMe Smart Contract - Remix - Chainlink `call to FundMe.getVersion errored: execution reverted`

I am learning to use Chain Link to get price conversions and also to implement other functions provided by Chainlink. I have 2.9992 ETH on Rinkeby Test Net and I am successfully able to compile and deploy the code using Remix IDE using Injected Web3…