🤝🏻 Cooperation-API:🕹Integrate GMGN ETH/Base Trading API
Welcome to integrate GMGN's ETH/Base trading API for fast quantitative trading.
ETH/Base chain Swap transaction steps:
Get the transaction route, recommended slippage, and recommended gas price at the same time
Get transaction routing: Get the available routing for ETH/Base transactions
Get recommended slippage: Get the recommended slippage value of ETH/Base token
Get recommended gas price: Get the recommended gas price for ETH/Base chain
After selecting the route, call the simulated transaction
💻Swap transaction simulation (ETH/Base)
After the simulated transaction is passed, get the returned data field and use normal rpc or anti-pinch rpc to submit the formal transaction
Submit transaction signature, you can use ethers js library
Signature transaction tutorial https://docs.ethers.org/v6/api/providers/#Signer-signTransaction
Ethers js library https://github.com/ethers-io/ethers.js
Last updated