I know that etherscan shows the total cost of a transaction both in eth and in US dollars.

Is there any api of any kind to be able to get instant value of eth when I send a transaction?


Your best choice atm is to use coinmarketcap api. It gathers data from many different markets and provides an average price market. Alternatively, you can make use of markets APIs, like Kraken, Coinbase, etc .. Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.