📁
filecoin.loans
  • Introduction
  • Protocol
    • Lend FIL - ERC20 Tokens as Collateral
    • Lend ERC20 Tokens - FIL as Collateral
  • Develop
    • Requirements
    • Quickstart Guide
      • Setting up the Hardhat node
      • Running the server
      • Running the app
      • Setting up Metamask
  • Reference guide
    • Filecoin Loans Contracts
      • Interfaces
        • IBLAKE2b
        • IERC20
        • IPriceAggregator
      • Contracts
        • ERC20CollateralLock
        • ERC20Loans
    • API Reference
      • operation
        • FIL - ERC20 loan operations
        • ERC20 - FIL loan operations
      • loanAssets
      • protocolContracts
      • orders
      • loan
      • loans
      • notification
      • activity
  • Tools
    • filecoin-js-signer
      • API Reference
        • FilecoinSigner
          • msig
          • paych
          • tx
          • wallet
        • FilecoinClient
          • msig
          • paych
          • tx
          • wallet
      • Develop Guide
      • Credits and references
Powered by GitBook
On this page

Was this helpful?

  1. Reference guide
  2. API Reference

operation

PreviousAPI ReferenceNextFIL - ERC20 loan operations

Last updated 3 years ago

Was this helpful?

Confirm collateral lock operation

POST https://localhost:3000/api/operation/lock/ERC20/confirm

This endpoint allows you to confirm collateral lock operation

Request Body

Name
Type
Description

txHash

string

Transaction hash

operation

string

'CreateBorrowRequest', 'CancelBorrowRequest', 'AcceptOffer', 'UnlockCollateral', 'SeizeCollateral', 'UnlockRefundableCollateral'

networkId

string

Network identifier

{ status: 'OK', message: 'Loan Event alaready saved' }
{ status: 'OK', message: 'FIL Loan Operation Confirmed' }

FIL - ERC20 loan operations
ERC20 - FIL loan operations