📁
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
  • Confirm loan operation
  • Confirm lock collateral operation
  • Confirm seize collateral voucher operation
  • Confirm unlock collateral voucher operation
  • Confirm settle unlock collateral operation
  • Confirm collect unlock collateral operation
  • Confirm redeen seize collateral operation
  • Confirm settle seize collateral operation
  • Confirm collect seize collateral operation

Was this helpful?

  1. Reference guide
  2. API Reference
  3. operation

ERC20 - FIL loan operations

Confirm loan operation

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

Request Body

Name
Type
Description

networkId

string

Network identifier

operation

string

'CreateLoanOffer', 'ApproveRequest', 'Withdraw', 'Payback', 'AcceptRepayment', 'RefundPayback', 'CancelLoan'

txHash

string

Loan event hash

{ status: 'OK', message: 'ERC20 Loan Operation Confirmed' }

Confirm lock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/lockCollateral/confirm

Request Body

Name
Type
Description

signature

object

Signature of the message

message

object

Lotus message

{ status: 'OK', message: 'FIL Collateral Lock operation confirmed' }

Confirm seize collateral voucher operation

POST https://localhost:3000/api/operation/lend/ERC20/signSeizeCollateralVoucher/confirm

Request Body

Name
Type
Description

signedVoucher

string

Signed voucher base64

paymentChannelId

string

Payment channel ID

{ status: 'OK', message: 'Signed voucher saved' }

Confirm unlock collateral voucher operation

POST https://localhost:3000/api/operation/lend/ERC20/signUnlockVoucher/confirm

Request Body

Name
Type
Description

signedVoucher

string

Signed voucher base64

paymentChannelId

string

Payment channel ID

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm settle unlock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/settleUnlockCollateral/confirm

Request Body

Name
Type
Description

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm collect unlock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/collectUnlockCollateral/confirm

Request Body

Name
Type
Description

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm redeen seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/redeemSeizeCollateralVoucher/confirm

Request Body

Name
Type
Description

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm settle seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/settleSeizeCollateral/confirm

Request Body

Name
Type
Description

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm collect seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/collectSeizeCollateral/confirm

Request Body

Name
Type
Description

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

PreviousFIL - ERC20 loan operationsNextloanAssets

Last updated 3 years ago

Was this helpful?