Linked Questions

2 votes
1 answer
2k views

I have a scenario like that: I have a "Main" account with ethereum client: And there are other two accounts, lets call them: "A" and "B" "A" account will send to "B" account some token (ecr20 token)...
Mehmet Davut's user avatar
3 votes
1 answer
125 views

The contract contains ether. Can I buy the gas within the contract code?
SkyN's user avatar
  • 175
3 votes
0 answers
227 views

I would like my customers to send a custom token without thinking of a certain amount of ether for gas. So I've tried the standard-token at ethereum.org. There's a way described to auto refill the ...
Jerry's user avatar
  • 734
0 votes
1 answer
177 views

Is it possible to leave some gas in a contract for future action and / or top up if the contract is stuck. if yes could you please direct me to documentation.
Arash Kiani's user avatar
0 votes
1 answer
123 views

// here is my contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; ...
Ilyas Khan's user avatar
0 votes
1 answer
87 views

I’m a noob in smart contract development so I have a question. Is it possible to make that the smart contract itself can pay gas needed for executing? Or could I chose an address which should pay the ...
artem's user avatar
  • 13
0 votes
1 answer
74 views

I want to create a token but, I want people to send the tokens without them paying for the gas, is there any command to do this
Alejandro Pintor's user avatar
2 votes
0 answers
72 views

so I've been working on ethereum for the past few weeks, mainly deploying and interacting with contracts but something i noticed is the high gas usage of using the tokens over time, so i was wondering ...
Omry Rozenfeld's user avatar
0 votes
1 answer
78 views

I want to make a contract-to-contract call paying gas not from the user but from the calling contract's balance. Possible? How?
porton's user avatar
  • 1,854
0 votes
1 answer
67 views

I am trying to make a D'app. But I don't know how to fix this issue of paying gas every time. Do the user or owner need to pay everytime they use the application ? can we make it default gas by some ...
Kartikey's user avatar
1 vote
0 answers
31 views

Can rich contract (that holds some ethers) use them as a gas when it would like to call other contract? http://solidity.readthedocs.io/en/latest/control-structures.html gives an example of feed.info....
Artur Stanek's user avatar
27 votes
5 answers
37k views

As far as I understand, one of the ERC20 token's features is that you can pay a transaction fee with it. In other words, you can send them without having Ether. I transferred REP tokens to the ...
tomo's user avatar
  • 351
24 votes
5 answers
16k views

My understanding is that msg.sender pays the gas fee. Can a smart contract be written in such a way that it's always the contract owner who pay the fees? As an example, in an ERC20 token when someone ...
eth.block's user avatar
  • 431
14 votes
3 answers
5k views

Suppose there exists Fancycoin, an ERC20 altcoin which has some functionality implemented by the EVM. It does some nontrivial things that take up gas. According to my understanding, I can receive ...
Wapiti's user avatar
  • 419
8 votes
2 answers
4k views

I have a smart contract with some members which should get modified on certain events. For simplicity, let's imagine we have a greeter contract. If I call greeter.greet() in the JavaScript console, ...
q9f's user avatar
  • 33.1k

15 30 50 per page