You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,25 +40,23 @@ We can reduce the amount of time it takes for the API to return our JSON respons
40
40
41
41
Our transaction takes place in block 23876472 so we adjust our search to a small buffer around this block number.
42
42
43
-
The JSON object allows us to either use a hexadecimal string or for block number inputs. In this case, we use hexadecimals, so we input *0x16C5376* for a `fromBlock` of 23876470 and *0x16C537A* for a `toBlock` of 23876474)
43
+
>The JSON object allows us to either use a hexadecimal string or for block number inputs. In this case, we use hexadecimals, so we input *0x16C5376* for a `fromBlock` of 23876470 and *0x16C537A* for a `toBlock` of 23876474)
44
44
45
45
## 2. To & From Addresses
46
46
47
-
The To & From addresses represent where the transaction was sent and where it originated from respectively.
48
-
49
-
In our example, To Address is 0x9d2b758e3ffd2569c6956676fae7f8b71a53ffb5 and From Address is 0x5350e1068f0e138ff306990b16fa4910d970c692.
47
+
> The To & From addresses represent where the transaction was sent and where it originated from respectively. In our example, To Address is 0x9d2b758e3ffd2569c6956676fae7f8b71a53ffb5 and From Address is 0x5350e1068f0e138ff306990b16fa4910d970c692.
50
48
51
49
## 3. Contract Address
52
50
53
-
The contract address is the address denoting the specific ERC20, ERC721, or ERC1155 contract that we seek to find. In our example, the ERC20 contract for Polygon USDT is 0xc2132d05d31c914a87c6611c10748aeb04b58e8f.
51
+
> The contract address is the address denoting the specific ERC20, ERC721, or ERC1155 contract that we seek to find. In our example, the ERC20 contract for Polygon USDT is 0xc2132d05d31c914a87c6611c10748aeb04b58e8f.
54
52
55
53
Putting together this information, we can now use Alchemy’s Composer tool to return results that include our target transaction. [Visit this Alchemy Composer Example!](https://composer.alchemyapi.io?composer_state=%7B%22chain%22%3A2%2C%22network%22%3A401%2C%22methodName%22%3A%22alchemy_getAssetTransfers%22%2C%22paramValues%22%3A%5B%7B%22excludeZeroValue%22%3Atrue%2C%22fromBlock%22%3A%220x16C5376%22%2C%22toAddress%22%3A%220x9d2b758e3ffd2569c6956676fae7f8b71a53ffb5%22%2C%22contractAddresses%22%3A%22%5B%5C%220xc2132d05d31c914a87c6611c10748aeb04b58e8f%5C%22%5D%22%2C%22fromAddress%22%3A%220x5350e1068f0e138ff306990b16fa4910d970c692%22%2C%22category%22%3A%5B%22erc20%22%5D%2C%22toBlock%22%3A%220x16C537A%22%7D%5D%7D)
56
54
57
55
## To use this starter script, insert your Alchemy Key for API access:
58
56
59
57
>If you don’t already have one, you’ll first need to create an account on Alchemy. The free version will work fine for getting started!
60
58
61
-
>Replace the string “ALCHEMY KEY” with your own private API key in `main.py`.
59
+
Replace the string “ALCHEMY KEY” with your own private API key in `main.py`.
0 commit comments