From c0b0b257919818bcd083021139fac8281914e21a Mon Sep 17 00:00:00 2001 From: MaghirSokker Date: Sun, 4 Feb 2024 01:58:24 +0100 Subject: [PATCH] Updated solana to reflect changes, introduced batch_labels --- endpoint/batch_label.mdx | 109 +++++++++++++++++++++++++++++++++++++ endpoint/solana/label.mdx | 5 +- endpoint/solana/search.mdx | 4 +- 3 files changed, 112 insertions(+), 6 deletions(-) create mode 100644 endpoint/batch_label.mdx diff --git a/endpoint/batch_label.mdx b/endpoint/batch_label.mdx new file mode 100644 index 0000000..96c8e4e --- /dev/null +++ b/endpoint/batch_label.mdx @@ -0,0 +1,109 @@ +--- +title: "Batch Labels API" +api: "GET https://api-c.walletlabels.xyz/solana/label" +description: "This endpoint enables you to search and retrieve multiple labels by their addresses simultaneously.." +--- + +### Authorization + + + Your API key for authentication. + + +### Body +{" One of the two following queries options is required to run your query :"} + + + Specify the Ethereum address for which you want to retrieve labels. + + + Specify the Solana address name for which you want to retrieve labels. + +### Response + + + An array that encapsulates the labels corresponding to the addresses provided. + + + + + The designated name associated with the specific address. + + +{" "} + + + The address for the label. + + +{" "} + + + Categories to define the nature of the label. + + +{" "} + + + Additional attributes for a + more granular understanding of the label. + + +{" "} + + + The general name or title of the label. + + +{" "} + + + The meta-score of the Ethereum label. + + + + + + +```bash Example Request +curl --location --request GET 'https://api-c.walletlabels.xyz/batch_label?eth=0x5d446fc8dbd10ebacfe9a427ab5402586af98cd4,0x5d8ce06a40fb101895be5b6560931b92a1b3444f' \ +--header 'Content-Type: application/json' \ +--header 'x-api-key: demo-api-key-x-00000' +``` + + + + + +```json Response +{ + "data": {"batch_result":[ + { + "address": "0x5d446fc8dbd10ebacfe9a427ab5402586af98cd4", + "address_name": "unfederalreserve: unwbtc token", + "label_type": "token", + "label_subtype": "token_contract", + "label": "unfederalreserve", + "score": 1.1 + }, + { + "address": "0x5d8ce06a40fb101895be5b6560931b92a1b3444f", + "address_name": "tagz token", + "label_type": "token", + "label_subtype": "token_contract", + "label": "tagz token", + "score": 1.1 + } + + ] +} +} +``` + + diff --git a/endpoint/solana/label.mdx b/endpoint/solana/label.mdx index 63f7a3c..8fb1db1 100644 --- a/endpoint/solana/label.mdx +++ b/endpoint/solana/label.mdx @@ -22,16 +22,13 @@ description: "Retrieve user-friendly labels for Solana EOAs (Externally Owned Ac Specify the Solana address for which you want to retrieve labels. - - Specify the Solana address name for which you want to retrieve labels. - Specify number of shown results. ### Response - An array that encapsulates the labels corresponding to the Solana address provided. + An array that encapsulates the label corresponding to the Solana address provided. diff --git a/endpoint/solana/search.mdx b/endpoint/solana/search.mdx index 417af50..33c5630 100644 --- a/endpoint/solana/search.mdx +++ b/endpoint/solana/search.mdx @@ -1,7 +1,7 @@ --- title: "Account Search API (Beta)" api: "GET https://api-c.walletlabels.xyz/solana/search" -description: "Retrieve user-friendly labels for Solana EOAs (Externally Owned Accounts) and Smart Contracts. Labels can be incredibly useful for categorizing your Solana interactions." +description: "This endpoint enables you to search and retrieve labels by their names. It's particularly useful for finding specific Solana accounts based on labels." --- ### Authorization @@ -66,7 +66,7 @@ description: "Retrieve user-friendly labels for Solana EOAs (Externally Owned Ac ```bash Example Request -curl --location --request GET 'https://api-c.walletlabels.xyz/solana/search?search=nft&limit=1' \ +curl --location --request GET 'https://api-c.walletlabels.xyz/solana/search?searchtext=nft&limit=1' \ --header 'Content-Type: application/json' \ --header 'x-api-key: demo-api-key-x-00000' ```