Hi , I want to make a contract where the cost of gas is assumed by the smart contract, is there how to do this? Or the person who transacts always assumes the cost? This because I want to transact in BSC but I don't want my client to have BNB

Mar 12, 2021, 6:00 PM
You can have a look at Gas Station Network which is in Ethereum - unsure if there is something similar in BSC
token transfers cost more than the minimum of 21000
just set your gas (limit) to something like 100000
gas price is a different thing
gas limit says how much gas the transaction can cost at maximum - if it exceeds the transaction reverts. gas price is used for getting ahead of the transaction queue
Mar 12, 2021, 6:08 PM
tks
Mar 12, 2021, 6:10 PM
just google the concept of "merkle airdrop" elsewhere, that's just an example
(no, I don't know how it works really)
Mar 12, 2021, 6:24 PM
In case of BNB, there are some restrictions. I tried to send transaction with a lower gas price on metamask and it errored out saying gas price too low
Mar 12, 2021, 6:28 PM
in bsc gas is always charged in BNB?
Mar 12, 2021, 6:31 PM
It isn't? I mean is there an alternative, don't know for sure...
Yeah the app one
Ooh it costs that much now😳
It was waay more cheaper when I used it
But that's like 1 year ago, and I only used for like 2-3 times. So...😅
Aah then its better to write a contract.
Make it like a claimable one. So if you have a website, add a big "Claim" button so users can click on that and you call this claim function on contract which sends token to user
Users would have to pay the fees though
Mar 12, 2021, 6:46 PM

© 2024 Draquery.com All rights reserved.