include-sdk
get/api/v2/pwn_contracts/proposal-and-loan/

Request

  • The document declares no server URL.
  • Auth: one of:
    • HTTP bearer
    • none

Query parameters

apr_maxstring
apr_minstring
assetContractAddressstring
assetOwnerAddressstring
borrowerAddressstring
chainsinteger[]
  • 1 - Mainnet
  • 137 - Polygon
  • 100 - Gnosis
  • 25 - Cronos
  • 8453 - Base
  • 10 - Optimism
  • 130 - Unichain
  • 42161 - Arbitrum One
  • 56 - Bnb Smart Chain
  • 11155111 - Sepolia
  • 1301 - Unichain Sepolia
  • 112211 - Sn Main
  • 11155112 - Sn Sepolia
  • 480 - World
  • 57073 - Ink
  • 59144 - Linea
  • 42220 - Celo
collateralAssetstring[]

Values passed to this filter should be CSV values with length 2, 3 or 4: 'chain_id,contract_address,amount(optional),token_id(optional)'. If you want to pass token_id but not amount, you should keep the amount empty.

collateralAssetCategorystring[]

Multiple values may be separated by commas.

collateralType'all' | 'erc20' | 'nft'
  • erc20 - Only proposals/loans with ERC20 collateral
  • nft - Only proposals/loans with NFT collateral
  • all - All proposals/loans no matter the collateral type
createdFromProposalHashstring
createdFromProposalIdstring
creditAssetstring[]

Values passed to this filter should be CSV values with length 2 or 3: 'chain_id,contract_address,amount(optional)'

creditAssetCategorystring[]

Multiple values may be separated by commas.

durationInSeconds_maxinteger
durationInSeconds_mininteger
endTimestring

End Time

excludeUserAddressstring
includeCollateralWithoutPriceboolean
includeCreditWithoutPriceboolean
includeLoansboolean
includeProposalsboolean
includeUnverifiedCollateralboolean
includeUnverifiedCreditboolean
isOfferboolean
lenderAddressstring
limitinteger

Number of results to return per page.

ltv_maxinteger nullable
ltv_mininteger nullable
offsetinteger

The initial index from which to return the results.

onlyWithBuilderScoreboolean
onlyWithReputationScoreboolean
orderBystring[]

Ordering choices:

  • expiration: Expiration (only proposals)
  • -expiration: Expiration desc (only proposals)
  • ltv: LTV (comma separated)
  • -ltv: LTV desc (comma separated)
  • apr: APR
  • -apr: APR desc
  • collateral_name: Collateral name
  • -collateral_name: Collateral name desc
  • duration: Duration
  • -duration: Duration desc
  • created_at: Created at
  • -created_at: Created at desc
  • usd_credit_value: Credit value in USD
  • -usd_credit_value: Credit value in USD (desc)
  • default_date: Default date (loan)
  • -default_date: Default date (loan) (desc)
  • builder_score: Builder Score
  • -builder_score: Builder Score (desc)
  • reputation_score: Reputation Score
  • -reputation_score: Reputation Score (desc)
qstring
relatedThesisIdstring
startTimestring

Start Time

statusesinteger[]
  • 0 - DEAD
  • 2 - RUNNING
  • 3 - PAID
  • 4 - DEFAULTED
  • -6 - DEPRECATED
  • -5 - UNAVAILABLE_THESIS_TERMS_CHANGED
  • -4 - UNACCEPTABLE
  • -3 - ACCEPTED
  • -2 - EXPIRED
  • -1 - REVOKED
  • 1 - OPEN
userAddressstring

Response

countinteger
nextstring uri nullable
previousstring uri nullable

Example response

{
  "count": 123,
  "next": "https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100",
  "previous": "https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100"
}

Changes

    • warning

      added the new 42220.00 enum value to the // response property for the response status

    • warning

      added the new 42220.00 enum value to the /// response property for the response status

    • warning

      added the new 42220.00 enum value to the /// response property for the response status

    • warning

      added the new 57073.00 enum value to the // response property for the response status

    • warning

      added the new 57073.00 enum value to the /// response property for the response status

    • warning

      added the new 57073.00 enum value to the /// response property for the response status

    • info

      added the enum value 42220.00 to the property items/ of the query request parameter chains

    • info

      added the enum value 57073.00 to the property items/ of the query request parameter chains

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • breaking

      the // response's property type changed from no type to object for status

    • warning

      added the new 59144.00 enum value to the // response property for the response status

    • warning

      added the new 59144.00 enum value to the /// response property for the response status

    • warning

      added the new 59144.00 enum value to the /// response property for the response status

    • info

      added the enum value 59144.00 to the property items/ of the query request parameter chains

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      removed subschema #2 from the // response property anyOf list for the response status

    • info

      the response property // became required for the status