PancakeSwap token buying function and get token price function.

Job ID: 35199663

Budget: €50 – €150 EUR

I need two pancakeswap Javascript/Nodejs functions, swap token and get price function. Functions should support Pancakeswap V2. I don't need a user interface.

- In the swapToken function parameters I should be able to provide the BEP20 contract addresses for the trading pair, amount, transaction deadline, gas fee and slippage. The function should be able to access my wallet(by using private key).
- In the getPrice function parameters I should be able to provide the BEP20 contract addresses for the trading pair. Function should return trading pair price.
Related categories: JavaScript Node.js Blockchain Ethereum Cryptocurrency