📁
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 lend operation
  • Confirm withdraw voucher operation
  • Confirm redeem voucher operation
  • Confirm settle operation
  • Confirm collect operation
  • Confirm payback payement channel operation
  • Confirm payback voucher operation
  • Confirm redeem payback operation
  • Confirm settle payback operation
  • Confirm collect payback operation

Was this helpful?

  1. Reference guide
  2. API Reference
  3. operation

FIL - ERC20 loan operations

Confirm lend operation

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

This endpoint allows you to confirm lend operations

Request Body

Name
Type
Description

signature

object

Signature of the message

message

object

Lotus message

{ status: 'OK', message: 'Lend FIL operation saved' }

Confirm withdraw voucher operation

POST https://localhost:3000/api/operation/lend/FIL/signWithdrawVoucher/confirm

Request Body

Name
Type
Description

paymentChannelId

string

Payment channel ID

signedVoucher

string

Voucher base64

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

Confirm redeem voucher operation

POST https://localhost:3000/api/operation/lend/FIL/redeemWithdrawVoucher/confirm

Request Body

Name
Type
Description

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm settle operation

POST https://localhost:3000/api/operation/lend/FIL/settleWithdraw/confirm

Request Body

Name
Type
Description

network

string

Filecoin Network

CID

string

Loan event hash

{ status: 'OK', message: 'FIL Loan updated successfully' } already saved' }

Confirm collect operation

POST https://localhost:3000/api/operation/lend/FIL/collectWithdraw/confirm

Request Body

Name
Type
Description

network

string

Filecoin Network

CID

string

Loan event hash

{ status: 'OK', message: 'FIL Loan updated successfully' } already saved' }

Confirm payback payement channel operation

POST https://localhost:3000/api/operation/lend/FIL/paybackPaymentChannel/confirm

Request Body

Name
Type
Description

message

string

Lotus message

signature

string

Message signature

{ status: 'OK', message: 'Lend FIL operation saved' }: 'FIL Loan updated successfully' } already saved' }

Confirm payback voucher operation

POST https://localhost:3000/api/operation/lend/FIL/signPaybackVoucher/confirm

Request Body

Name
Type
Description

paymentChannelId

string

Payment channel ID

signedVoucher

string

Voucher base64

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

Confirm redeem payback operation

POST https://localhost:3000/api/operation/lend/FIL/redeemPaybackVoucher/confirm

Request Body

Name
Type
Description

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm settle payback operation

POST https://localhost:3000/api/operation/lend/FIL/settlePayback/confirm

Request Body

Name
Type
Description

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm collect payback operation

POST https://localhost:3000/api/operation/lend/FIL/collectPayback/confirm

Request Body

Name
Type
Description

network

string

Filecoin network

CID

string

Loan event hash

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

PreviousoperationNextERC20 - FIL loan operations

Last updated 3 years ago

Was this helpful?