API Reference
Nomial V1 API Reference
Last updated
Nomial V1 API Reference
Last updated
address
String in the form of "0x..."
uint
Unsigned int
The following API methods are convenience functions to generate transactions for submission to the blockchain. Some require prior calls to request signatures from Validators.
GET
/pools
Get state data for collateral and inventory pools.
Headers
Content-Type
application/json
Body
No parameters
GET
/borrowers/{borrowerAddress}/status
Get state data for borrower (e.g., a solver).
URL Parameters
borrowerAddress
address
Headers
Content-Type
application/json
Body
No parameters
The following API methods are convenience functions to generate transactions for submission to the blockchain. Some require prior calls to request signatures from Validators.
GET
/collateralDeposit
Generate a fully formed transaction to deposit collateral in a collateral pool.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint
GET
/startWithdraw
Generate a fully formed transaction to withdraw collateral from a collateral pool.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint
GET
/withdraw
Generate a fully formed transaction to withdraw collateral from a collateral pool seven days after startWithdraw
.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint
GET
/borrow
Generate a fully formed transaction to borrow from an inventory pool. Requires signature from validators.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint
recipient
address
validatorSignature
GET
/borrow
Generate a fully formed transaction to repay an inventory pool.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint
POST
/borrowRequest
Request a signed borrow permission from validators.
Headers
Content-Type
application/json
Body
solver
address
token
address
amount
uint