This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.8.18; | |
| // As per ERC-1271 | |
| interface IERC1271Wallet { | |
| function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue); | |
| } | |
| error ERC1271Error(string reason); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function getAddressFullTransactionHistory() { | |
| var address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" | |
| var fullTransactions = [] | |
| var nextBlock = -1 | |
| while (true) { | |
| const requestTransactions = await fetch(`https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=${0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045}&startblock=${nextBlock}&endblock=latest&page=1&offset=1000&sort=asc&apikey-YSTQ432F5CP8MYRCXVD5F9YJ988BKXVZS2`) | |
| const transactions = await requestTransactions.json() |