Skip to main content
added 958 characters in body
Source Link

How do i get a reverted transaction receipt id from an AAVE flashloan request on the mainnet?

The transaction fails and rollsback, but I don't see any tx receipt output for the failed transaction to follow up on.

As an example, in the hardhat typescript, I make a pretty standard call the requestFlashLoan function in the solidity smart contract:

async function requestFlashLoan(deployer : Signer) {
    // Instantiate FLA Contract 
    
    const contractFLASend = new ethers.Contract(
        FLA_CONTRACT_ADDRESS,
        abiFLASend,
        deployer
      );

    // Request Flashloan and Swap of Tokens  
    await contractFLASend.requestFlashLoan(TOKEN0_ADDRESS, TOKEN0_AMOUNT, SWAP_CONTRACT_ADDRESS, 
        TRANSACTION_DATA);

}

Then when the Solidity function gets called:

requestFlashLoan -- which is pretty boiler plate for AAVE and the payback fails because I'm short of money to payback the loan, the whole transaction accordingly rollsback--which it should do, but I'm unclear on how to get the transaction receipt in the typescript code from the rolled back transaction.

How do i get a reverted transaction receipt id from an AAVE flashloan request on the mainnet?

The transaction fails and rollsback, but I don't see any tx receipt output for the failed transaction to follow up on.

How do i get a reverted transaction receipt id from an AAVE flashloan request on the mainnet?

The transaction fails and rollsback, but I don't see any tx receipt output for the failed transaction to follow up on.

As an example, in the hardhat typescript, I make a pretty standard call the requestFlashLoan function in the solidity smart contract:

async function requestFlashLoan(deployer : Signer) {
    // Instantiate FLA Contract 
    
    const contractFLASend = new ethers.Contract(
        FLA_CONTRACT_ADDRESS,
        abiFLASend,
        deployer
      );

    // Request Flashloan and Swap of Tokens  
    await contractFLASend.requestFlashLoan(TOKEN0_ADDRESS, TOKEN0_AMOUNT, SWAP_CONTRACT_ADDRESS, 
        TRANSACTION_DATA);

}

Then when the Solidity function gets called:

requestFlashLoan -- which is pretty boiler plate for AAVE and the payback fails because I'm short of money to payback the loan, the whole transaction accordingly rollsback--which it should do, but I'm unclear on how to get the transaction receipt in the typescript code from the rolled back transaction.

edited title
Link

How do iI get a reverted transaction id from an AAVE flashloan request?

Source Link

How do i get a reverted transaction id from an AAVE flashloan request?

How do i get a reverted transaction receipt id from an AAVE flashloan request on the mainnet?

The transaction fails and rollsback, but I don't see any tx receipt output for the failed transaction to follow up on.