📁
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
  • Get Borrow Request By State
  • Get Loan Offers By State

Was this helpful?

  1. Reference guide
  2. API Reference

orders

Get Borrow Request By State

GET https://localhost:3000/api/orders/borrow/:state

This endpoint allows you to get borrow requests by an state

Path Parameters

Name
Type
Description

state

string

`available`, `closed` or state number

{"status":"OK","payload":[{"contractLoanId": "1", "paymentChannelId": "t010054", "borrower": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", "lender": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8", "filBorrower": "t1qphxnf4aigxvz2ivk4zvumbvu2wcm6lu6pxwu2i", "filLender":"t1bwon7wa4f7hpawkcluagsulibkutegwruwriwri", "secretHashA1": "1759f852bcde2250fc68f74d9ca42974d2adf001d3d94035d1de9356530be2b5", "secretHashB1": "494fba8278904dbb58b11744ca721e6e6a26bc49f52cf7d09c1c0df6ba74519c", "secretA1": "7365637265744131", "secretB1": "7365637265744131"

Get Loan Offers By State

GET https://localhost:3000/api/orders/lend/:state

Path Parameters

Name
Type
Description

state

string

`available`, `closed` or state number

PreviousprotocolContractsNextloan

Last updated 3 years ago

Was this helpful?