Skip to main content

Anchors API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
anchorDisassociateAssetPOST /anchors/{anchor}/assets/delete/{asset}/anchors/{anchor}/assets/delete/{asset} [POST]
anchorsCreateNewAnchorPOST /anchors/create/anchors/create [POST]
anchorsDeleteSpecificAnchorPOST /anchors/{anchor}/delete/anchors/{anchor}/delete [POST]
anchorsSnapshotGET /anchors/anchors [GET]

anchorDisassociateAsset

anchorDisassociateAsset(anchor, asset)

/anchors/{anchor}/assets/delete/{asset} [POST]

This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another.

Example

import 'package:core_openapi/api.dart';

final api_instance = AnchorsApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.

try {
api_instance.anchorDisassociateAsset(anchor, asset);
} catch (e) {
print('Exception when calling AnchorsApi->anchorDisassociateAsset: $e\n');
}

Parameters

NameTypeDescriptionNotes
anchorStringThis is the specific uuid of an anchor.
assetStringThe id (uuid) of the asset that you are trying to access.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

anchorsCreateNewAnchor

Anchor anchorsCreateNewAnchor(transferables, seededAnchor)

/anchors/create [POST]

This will create a anchor and attach it to a specific asset(s) This will also ensure the anchor is normalized.

Example

import 'package:core_openapi/api.dart';

final api_instance = AnchorsApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final seededAnchor = SeededAnchor(); // SeededAnchor |

try {
final result = api_instance.anchorsCreateNewAnchor(transferables, seededAnchor);
print(result);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsCreateNewAnchor: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]
seededAnchorSeededAnchor[optional]

Return type

Anchor

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, text/plain

anchorsDeleteSpecificAnchor

anchorsDeleteSpecificAnchor(anchor)

/anchors/{anchor}/delete [POST]

This will delete a specific anchor!

Example

import 'package:core_openapi/api.dart';

final api_instance = AnchorsApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.

try {
api_instance.anchorsDeleteSpecificAnchor(anchor);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsDeleteSpecificAnchor: $e\n');
}

Parameters

NameTypeDescriptionNotes
anchorStringThis is the specific uuid of an anchor.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

anchorsSnapshot

Anchors anchorsSnapshot(transferables)

/anchors [GET]

This will get a snapshot of all your anchors.

Example

import 'package:core_openapi/api.dart';

final api_instance = AnchorsApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
final result = api_instance.anchorsSnapshot(transferables);
print(result);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsSnapshot: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]

Return type

Anchors

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain