import 'package:moonsdk/api.dart';
All URIs are relative to https://beta.usemoon.ai
Method | HTTP request | Description |
---|---|---|
approve | POST /erc721/{name}/approve | |
balanceOf | POST /erc721/{name}/balance-of | |
getApproved | POST /erc721/{name}/get-approved | |
isApprovedForAll | POST /erc721/{name}/is-approved-for-all | |
name | POST /erc721/{name}/name | |
ownerOf | POST /erc721/{name}/owner-of | |
safeTransferFrom | POST /erc721/{name}/safe-transfer-from | |
setApprovalForAll | POST /erc721/{name}/set-approval-for-all | |
symbol | POST /erc721/{name}/symbol | |
tokenUri | POST /erc721/{name}/token-uri | |
transfer | POST /erc721/{name}/transfer | |
transferFrom | POST /erc721/{name}/transfer-from |
TransactionAPIResponse approve(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.approve(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->approve: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse balanceOf(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.balanceOf(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->balanceOf: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse getApproved(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.getApproved(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->getApproved: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse isApprovedForAll(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.isApprovedForAll(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->isApprovedForAll: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse name(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.name(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->name: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse ownerOf(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.ownerOf(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->ownerOf: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse safeTransferFrom(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.safeTransferFrom(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->safeTransferFrom: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse setApprovalForAll(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.setApprovalForAll(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->setApprovalForAll: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse symbol(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.symbol(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->symbol: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse tokenUri(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.tokenUri(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->tokenUri: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse transfer(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.transfer(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->transfer: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionAPIResponse transferFrom(authorization, name, erc721Request)
import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';
final api = Moonsdk().getErc721Api();
final String authorization = authorization_example; // String |
final String name = name_example; // String |
final Erc721Request erc721Request = ; // Erc721Request |
try {
final response = api.transferFrom(authorization, name, erc721Request);
print(response);
} catch on DioException (e) {
print('Exception when calling Erc721Api->transferFrom: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
name | String | ||
erc721Request | Erc721Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]