0% found this document useful (0 votes)
178 views3 pages

Alchemy Transaction Quick Guide

This guide outlines the steps for successfully conducting a transaction using the Alchemy API, including setting up the API details, installing the Alchemy SDK, and configuring a .env file with the necessary private key. It emphasizes the importance of using the correct wallet for signing the transaction and adjusting gas fees according to network conditions. Finally, it instructs users to run the code and check for a transaction hash as confirmation of success.

Uploaded by

Daniel Vila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views3 pages

Alchemy Transaction Quick Guide

This guide outlines the steps for successfully conducting a transaction using the Alchemy API, including setting up the API details, installing the Alchemy SDK, and configuring a .env file with the necessary private key. It emphasizes the importance of using the correct wallet for signing the transaction and adjusting gas fees according to network conditions. Finally, it instructs users to run the code and check for a transaction hash as confirmation of success.

Uploaded by

Daniel Vila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like