Erc20Api
All URIs are relative to https://moon-vault-api-git-ew-supabase-migration-moonup.vercel.app
Method
HTTP request
Description
POST /erc20/{name}/allowance
POST /erc20/{name}/approve
POST /erc20/{name}/balance-of
POST /erc20/{name}/decimals
POST /erc20/{name}/symbol
POST /erc20/{name}/total-supply
POST /erc20/{name}/transfer
POST /erc20/{name}/transfer-from
allowanceErc20
TransactionAPIResponse allowanceErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.allowanceErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#allowanceErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#allowanceErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
approveErc20
TransactionAPIResponse approveErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.approveErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#approveErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#approveErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
balanceOfErc20
TransactionAPIResponse balanceOfErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.balanceOfErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#balanceOfErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#balanceOfErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
decimalsErc20
TransactionAPIResponse decimalsErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.decimalsErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#decimalsErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#decimalsErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
nameErc20
TransactionAPIResponse nameErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.nameErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#nameErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#nameErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
symbolErc20
TransactionAPIResponse symbolErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.symbolErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#symbolErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#symbolErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
totalSupplyErc20
TransactionAPIResponse totalSupplyErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.totalSupplyErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#totalSupplyErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#totalSupplyErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
transferErc20
TransactionAPIResponse transferErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.transferErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#transferErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#transferErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
transferFromErc20
TransactionAPIResponse transferFromErc20(authorization, name, inputBody)
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = Erc20Api()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val inputBody : InputBody = // InputBody |
try {
val result : TransactionAPIResponse = apiInstance.transferFromErc20(authorization, name, inputBody)
println(result)
} catch (e: ClientException) {
println("4xx response calling Erc20Api#transferFromErc20")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Erc20Api#transferFromErc20")
e.printStackTrace()
}
Parameters
Return type
TransactionAPIResponse
Authorization
Configure ApiKeyAuth: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = "" Configure BearerAuth: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
Content-Type: application/json
Last updated