Skip to content

Calculating the Fee Amount Before Transfer #152

Open
@emin-karadag

Description

@emin-karadag

Hello,
I am using Thirdweb [v2.22.0] version. I have a question for you.

I wrote the code that transfers tokens on various networks such as Binance Smart Chain, Avalanche, Polygon. However, I want to do something like this: Before making a token transfer, I want to calculate the network fee to be spent for that transfer.

If there is a method where I can get the approximate network fee to be spent for that token transfer as AVAX in the Avalanche network and as BNB in the BSC network, can you show it with an example code?
Thank you.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions