\AaveAPI
All URIs are relative to https://beta.usemoon.ai
Borrow
Post /aave/{name}/borrow
Lend
Post /aave/{name}/lend
Repay
Post /aave/{name}/repay
UserReserveData
Post /aave/{name}/user-reserve-data
Borrow
TransactionAPIResponse Borrow(ctx, name).Authorization(authorization).AaveInput(aaveInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiBorrowRequest struct via the builder pattern
authorization
string
aaveInput | AaveInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lend
TransactionAPIResponse Lend(ctx, name).Authorization(authorization).AaveInput(aaveInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiLendRequest struct via the builder pattern
authorization
string
aaveInput | AaveInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Repay
TransactionAPIResponse Repay(ctx, name).Authorization(authorization).AaveInput(aaveInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiRepayRequest struct via the builder pattern
authorization
string
aaveInput | AaveInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserReserveData
AaveReservesAPIResponse UserReserveData(ctx, name).Authorization(authorization).AaveInput(aaveInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiUserReserveDataRequest struct via the builder pattern
authorization
string
aaveInput | AaveInput | |
Return type
AaveReservesAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]