Raw Transactions (Advanced)

1. Create a Bid Pool

This operation creates a bid pool for a specific collection.

post

Inialize bid pool

Body
interestratestringOptionalExample: 1
graceperiodstringOptionalExample: 10
collectionstringOptionalExample: 1
loandurationstringOptionalExample: 10
secretstringOptionalExample: 10
rawbooleanOptionalExample: true
Responses
200

Successful response

application/json; charset=utf-8
post
/createLoanPool

2. Get Bid Pool

This operation retrieves the bid pool.

get

Get all bid pool

Responses
200

Successful response

application/json; charset=utf-8
get
/getLoanPool

3. Add Liquidity

This operation adds liquidity to a created Bid Pool.

post

Initialize a bid manager

Body
biddingoolstringOptionalExample: 1
bidamountstringOptionalExample: 100
totalbidsstringOptionalExample: 10
secretstringOptionalExample: abcd
rawbooleanOptionalExample: false
Responses
200

Successful response

application/json; charset=utf-8
post
/addLoanOffer

4. Get Bid Manager

This operation retrieves the bid manager.

get

get All bid managers

Responses
200

Successful response

application/json; charset=utf-8
get
/getLoanOffers

5. Get User Assets

This operation retrieves the assets of a specific user.

6. Get Asset Manager

This operation retrieves the asset manager.

get

Retrieves the assets owned by a specific user.

Path parameters
mintstringOptionalExample: 7YeSmq9njjsyr4Axb1LDzdooUaVJThXdgHE4Z6Gpaa3h
Responses
200

Successful response

application/json; charset=utf-8
get
/getAssetInfo/{mint}

7. Take Loan

Collection holders can claim loan on their NFTs.

post

Loan on list bid manager

Body
biddingpoolstringOptionalExample: 1
biddingmanagerstringOptionalExample: 1
nftmintstringOptionalExample: 1
secretstringOptionalExample: abcd
rawbooleanOptionalExample: false
Responses
200

Successful response

application/json; charset=utf-8
post
/processLoan

8. Repay Loan

Repay loan already taken by the user.

post

Repay an Loan

Body
biddingpoolaccountstringOptionalExample: 7YeSmq9njjsyr4Axb1LDzdooUaVJThXdgHE4Z6Gpaa3h
biddingmanagerstringOptionalExample: 1
nftmintstringOptionalExample: 1
secretstringOptionalExample: abcd
rawbooleanOptionalExample: false
Responses
200

Successful response

application/json; charset=utf-8
post
/repayLoan

9. Remove Liquidity

Liquidity providers can remove provided liquidity.

post

Cancel a bidding manager

Body
biddingpoolstringOptionalExample: 7YeSmq9njjsyr4Axb1LDzdooUaVJThXdgHE4Z6Gpaa3h
biddingmanagerstringOptionalExample: 1
secretstringOptionalExample: abcd
rawbooleanOptionalExample: false
Responses
200

Successful response

application/json; charset=utf-8
post
/removeLoanOffer

Last updated

Was this helpful?