QUICKGUIDE FOR A SUCCESSFUL TRANSACTION WITH ALCHEMY
1.- Swifnet, the details of the Alchemy API, such as host, endpoint, and access_key,
are entered.
2.- The Alchemy SDK is installed on the sender's server.
Install module dotenv:
3.- Create a .env file in the root project folder with this content:
REPLACE THE PRIVATE KEY WITH YOUR OWN PRIVATE KEY. Identify the correct private
key, the private key of the master wallet that contains converted funds. They might have
to identify that wallet within the sender's SwiftNet.
4.- Create [Link] file with this content:
Replace APIKEY and TO parameter to the Receiver Master Wallet
(on this screenshot I used other apikey different to step one and other master wallet, you
must use the indications of the receiver)
The main point is to execute eth_sendRawTransaction method correctly and it requires 2
core things to be successful:
✓ The wallet who's private key is used for signing the transaction has the
amount of funds + gas in Eth
✓ The gas is adjusted correctly as per network congestion situation.
Also
5.- Run the code:
The output will be longer but similar to this, be sure that no errors on that.
Give us the transaction hash, and now all will be quickly