P
P
Protokol
Search…
Nameservice
List of Nameservice Endpoints.

GET - /

Endpoint

1
/
Copied!

Example

1
curl https://explorer.protokol.sh/api/nameservice
Copied!

Query Parameters

Name
Type
Description
Required
page
int
The number of the page that will be returned.
No
limit
int
The number of resources per page.
No
orderBy
string
Type by which should order resources.
No
transform
boolean
If returns modified or raw data.
No

Response

1
{
2
"meta": {
3
"totalCountIsEstimate": true,
4
"count": 1,
5
"pageCount": 1,
6
"totalCount": 1,
7
"next": null,
8
"previous": null,
9
"self": "/nameservice?transform=true&page=1&limit=100",
10
"first": "/nameservice?transform=true&page=1&limit=100",
11
"last": "/nameservice?transform=true&page=1&limit=100"
12
},
13
"data": [
14
{
15
"id": "b20e1aebb3652c247c1d1bdc88074a819d175af20f00232d4a85bb9b5a07b637",
16
"sender": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo",
17
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
18
"nameservice": "zan",
19
"timestamp": {
20
"epoch": 138928576,
21
"unix": 1629029776,
22
"human": "2021-08-15T12:16:16.000Z"
23
}
24
}
25
]
26
}
Copied!

GET - /:Id

Endpoint

1
/:id
Copied!

Example

1
curl https://explorer.protokol.sh/api/nameservice/aedafa0fa07e79ada72c8d676efaa9429ff04f47271bce742c6079b56872285c
Copied!

Response

1
{
2
"data": {
3
"id": "b20e1aebb3652c247c1d1bdc88074a819d175af20f00232d4a85bb9b5a07b637",
4
"sender": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo",
5
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
6
"nameservice": "zan",
7
"timestamp": {
8
"epoch": 138928576,
9
"unix": 1629029776,
10
"human": "2021-08-15T12:16:16.000Z"
11
}
12
}
13
}
Copied!

GET - /:id/wallet

Endpoint

1
/:id/wallet
Copied!

Example

1
curl https://explorer.protokol.sh/api/nameservice/zan/wallet
Copied!

Response

1
{
2
"data": {
3
"address": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo",
4
"publicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
5
"balance": "244995000000000",
6
"nonce": "6",
7
"name": "zan"
8
}
9
}
Copied!
Last modified 1mo ago