Lease
API for lease contract management
Creates a new lease contract
POST
https://api.borlaug.network/ar/leases
This endpoint allows you to get free cakes.
Headers
Name
Type
Description
Authentication
string
Authentication token to track down who is emptying our stocks.
Request Body
Name
Type
Description
term
object
Term of the lease
assets
array
Asset id and number of shares being assigned
lessee
string
DID of lessee
contract_number
string
Add one or more lessees
Get all leases by creator
GET
https://api.borlaug.network/ar/leases
Path Parameters
Name
Type
Description
string
Headers
Name
Type
Description
Authentication
string
Get a Lease
GET
https://api.borlaug.network/ar/leases/:leaseid
Path Parameters
Name
Type
Description
string
Headers
Name
Type
Description
Authentication
string
Void contract
DELETE
https://api.borlaug.network/ar/leases/:leaseid
Makes a contract void
Path Parameters
Name
Type
Description
leaseid
number
Lease contract id
Headers
Name
Type
Description
Authentication
string
Request Body
Name
Type
Description
lessor
string
Did of lessor (caller)
Last updated
Was this helpful?