Wallet Association

List all wallets of a preparation.

GET//localhost:9090/api/preparation/{id}/wallet
Path parameters
id*string

Preparation ID or name

Response

OK

Body
addressstring

Address is the Filecoin full address of the wallet

idstring

ID is the short ID of the wallet

privateKeystring

PrivateKey is the private key of the wallet

Request
const response = await fetch('//localhost:9090/api/preparation/{id}/wallet', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "address": "text",
    "id": "text",
    "privateKey": "text"
  }
]

Detach a new wallet from a preparation

DELETE//localhost:9090/api/preparation/{id}/wallet/{wallet}
Path parameters
id*string

Preparation ID or name

wallet*string

Wallet Address

Response

OK

Body
createdAtstring
deleteAfterExportboolean

DeleteAfterExport is a flag that indicates whether the source files should be deleted after export.

idinteger
maxSizeinteger
namestring
noDagboolean
noInlineboolean
outputStoragesarray of model.Storage (object)
pieceSizeinteger
sourceStoragesarray of model.Storage (object)
updatedAtstring
Request
const response = await fetch('//localhost:9090/api/preparation/{id}/wallet/{wallet}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "createdAt": "text",
  "deleteAfterExport": false,
  "name": "text",
  "noDag": false,
  "noInline": false,
  "outputStorages": [
    {
      "clientConfig": {
        "caCert": [
          "text"
        ],
        "clientCert": "text",
        "clientKey": "text",
        "disableHttp2": false,
        "disableHttpKeepAlives": false,
        "insecureSkipVerify": false,
        "noGzip": false,
        "retryBackoffExponential": 0,
        "skipInaccessibleFile": false,
        "useServerModTime": false,
        "userAgent": "text"
      },
      "config": {},
      "createdAt": "text",
      "name": "text",
      "path": "text",
      "preparationsAsOutput": [],
      "preparationsAsSource": [],
      "type": "text",
      "updatedAt": "text"
    }
  ],
  "sourceStorages": [
    {
      "clientConfig": {
        "caCert": [
          "text"
        ],
        "clientCert": "text",
        "clientKey": "text",
        "disableHttp2": false,
        "disableHttpKeepAlives": false,
        "insecureSkipVerify": false,
        "noGzip": false,
        "retryBackoffExponential": 0,
        "skipInaccessibleFile": false,
        "useServerModTime": false,
        "userAgent": "text"
      },
      "config": {},
      "createdAt": "text",
      "name": "text",
      "path": "text",
      "preparationsAsOutput": [],
      "preparationsAsSource": [],
      "type": "text",
      "updatedAt": "text"
    }
  ],
  "updatedAt": "text"
}

Attach a new wallet with a preparation

POST//localhost:9090/api/preparation/{id}/wallet/{wallet}
Path parameters
id*string

Preparation ID or name

wallet*string

Wallet Address

Response

OK

Body
createdAtstring
deleteAfterExportboolean

DeleteAfterExport is a flag that indicates whether the source files should be deleted after export.

idinteger
maxSizeinteger
namestring
noDagboolean
noInlineboolean
outputStoragesarray of model.Storage (object)
pieceSizeinteger
sourceStoragesarray of model.Storage (object)
updatedAtstring
Request
const response = await fetch('//localhost:9090/api/preparation/{id}/wallet/{wallet}', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "createdAt": "text",
  "deleteAfterExport": false,
  "name": "text",
  "noDag": false,
  "noInline": false,
  "outputStorages": [
    {
      "clientConfig": {
        "caCert": [
          "text"
        ],
        "clientCert": "text",
        "clientKey": "text",
        "disableHttp2": false,
        "disableHttpKeepAlives": false,
        "insecureSkipVerify": false,
        "noGzip": false,
        "retryBackoffExponential": 0,
        "skipInaccessibleFile": false,
        "useServerModTime": false,
        "userAgent": "text"
      },
      "config": {},
      "createdAt": "text",
      "name": "text",
      "path": "text",
      "preparationsAsOutput": [],
      "preparationsAsSource": [],
      "type": "text",
      "updatedAt": "text"
    }
  ],
  "sourceStorages": [
    {
      "clientConfig": {
        "caCert": [
          "text"
        ],
        "clientCert": "text",
        "clientKey": "text",
        "disableHttp2": false,
        "disableHttpKeepAlives": false,
        "insecureSkipVerify": false,
        "noGzip": false,
        "retryBackoffExponential": 0,
        "skipInaccessibleFile": false,
        "useServerModTime": false,
        "userAgent": "text"
      },
      "config": {},
      "createdAt": "text",
      "name": "text",
      "path": "text",
      "preparationsAsOutput": [],
      "preparationsAsSource": [],
      "type": "text",
      "updatedAt": "text"
    }
  ],
  "updatedAt": "text"
}

Last updated