Skip to main content

Web3 Cloud API (1.0.0)

Download OpenAPI specification:Download

Address

BatchRegisterAddresses

Batch register addresses to given wallet.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
wallet_id
required
string

Unique ID of wallet.

addresses
Array of strings

Substrate address.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "addresses": [
    ]
}

Response samples

Content type
application/json
{ }

BatchRemoveAddresses

Batch remove addresses from given wallet.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
wallet_id
required
string

Unique ID of wallet.

addresses
Array of strings

Substrate addresses.

remove_all
boolean

If true, remove all addresses for given wallet.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "addresses": [
    ],
  • "remove_all": true
}

Response samples

Content type
application/json
{ }

RegisterAddress

Register address to given wallet.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
wallet_id
required
string

Unique ID of wallet.

address
required
string

Substrate address.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe"
}

Response samples

Content type
application/json
{ }

RemoveAddress

Remove address from given wallet.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
wallet_id
required
string

Unique ID of wallet.

address
required
string

Substrate address.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe"
}

Response samples

Content type
application/json
{ }

Wallet

GetWallet

Get wallet. 404 error will be returned if the wallet is not found.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json

Either the wallet_id or address must be present.

wallet_id
string

Unique ID of wallet.

address
string

Substrate address.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe"
}

Response samples

Content type
application/json
{
  • "wallet": {
    }
}

ListWallets

List wallets.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
page_size
integer <int64> <= 100
Default: "10"

Number of items per page.

page_token
string

Token for next page.

Responses

Request samples

Content type
application/json
{
  • "page_size": 10,
  • "page_token": "CXART7WOIQT6AAAK"
}

Response samples

Content type
application/json
{
  • "wallets": [
    ],
  • "pagination": {
    }
}

RegisterWallet

Register wallet.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
name
required
string [ 1 .. 50 ] characters

Wallet name.

address
string

Substrate address.

Responses

Request samples

Content type
application/json
{
  • "name": "Alice Wallet",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe"
}

Response samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7"
}

Asset

ListAssets

List assets of given wallet or address.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json

Either the wallet_id or address must be present.

wallet_id
string

Unique ID of wallet.

asset_type
required
any
Enum: "ASSET_TYPE_SBY" "ASSET_TYPE_ASTR"

Type of asset.

address
required
string

Substrate address.

is_aggregated
boolean

If true, aggregate the balances of all addresses for each asset type.

page_size
integer <int64> <= 100
Default: "10"

Number of items per page.

page_token
string

Token for next page.

exclude_zero_balance
boolean
Default: "false"

If true, exclude asset whose balance is 0.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "asset_type": "ASSET_TYPE_ASTR",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe",
  • "is_aggregated": true,
  • "page_size": 10,
  • "page_token": "CXART7WOIQT6AAAK",
  • "exclude_zero_balance": "false"
}

Response samples

Content type
application/json
{
  • "assets": [
    ],
  • "pagination": {
    }
}

RefreshAssetBalances

Refresh balances of assets of given wallet or address.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json

Either the wallet_id or address must be present.

wallet_id
string

Unique ID of wallet.

address
required
string

Substrate address.

asset_type
required
any
Enum: "ASSET_TYPE_SBY" "ASSET_TYPE_ASTR"

Type of asset.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "address": "Z7yDRizXD9nmeKQF6bm6Cf4pWH1QCuHyrb98g4chir65RTe",
  • "asset_type": "ASSET_TYPE_ASTR"
}

Response samples

Content type
application/json
{ }

Webhook

ListWebhooks

List webhooks.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
object (v1ListWebhooksRequest)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "webhooks": [
    ]
}

RegisterWebhook

Register webhook to get notified on wallet activities.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json

If wallet_id is not provided, webhook will be registered for all wallets.

wallet_id
string

Unique ID of wallet.

webhook_endpoint
required
string

Webhook endpoint.

confirmation
required
integer <int64>

The threshold of block confirmations before the Webhook is triggered.

Responses

Request samples

Content type
application/json
{
  • "wallet_id": "3f80f049-b3be-4afd-ac46-1901d43232d7",
  • "webhook_endpoint": "https://test/webhook",
  • "confirmation": 10
}

Response samples

Content type
application/json
{
  • "webhook_id": "3f80f049-b3be-4afd-ac46-1901d43232d7"
}

RemoveWebhook

Remove webhook.

Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
webhook_id
required
string

Unique ID of webhook.

Responses

Request samples

Content type
application/json
{
  • "webhook_id": "3f80f049-b3be-4afd-ac46-1901d43232d7"
}

Response samples

Content type
application/json
{ }