Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit d9cdb39

Browse files
authored
Merge pull request #475 from alchemyplatform/peter/portfolio-apiz
Peter/portfolio apiz
2 parents 9d9ff2e + dff574d commit d9cdb39

File tree

2 files changed

+46
-42
lines changed

2 files changed

+46
-42
lines changed

β€Ždata/assets/tokens/by-address.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
summary: Tokens By Wallet
2+
description: >
3+
Fetches current balances, prices, and metadata for multiple addresses using network and address pairs. Returns a list of token balances, each containing the network and address. This endpoint is supported on Ethereum, Solana, and 30+ EVM chains. See the full list of supported networks [here](https://dashboard.alchemy.com/chains?service=token-api&utm_source=readme&utm_medium=link&utm_campaign=docs_method_chains_link_v1_tokens).
4+
tags: ["πŸ“š Portfolio APIs"]
5+
x-readme:
6+
samples-languages:
7+
- javascript
8+
- curl
9+
- python
10+
- go
11+
parameters:
12+
- $ref: './../../v1.yaml#/components/schemas/apiKey'
13+
requestBody:
14+
required: true
15+
content:
16+
application/json:
17+
schema:
18+
$ref: "./../../v1.yaml#/components/schemas/ByAddressRequestWithOptions"
19+
responses:
20+
"200":
21+
description: Successful response!
22+
content:
23+
application/json:
24+
schema:
25+
$ref: "./../../v1.yaml#/components/schemas/TokensResponse"
26+
"400":
27+
description: 'Bad Request: Invalid input (e.g., malformed JSON).'
28+
content:
29+
application/json:
30+
schema:
31+
$ref: "./../../v1.yaml#/components/schemas/ErrorResponse"
32+
"429":
33+
description: 'Too Many Requests: Rate limit exceeded.'
34+
content:
35+
application/json:
36+
schema:
37+
$ref: "./../../v1.yaml#/components/schemas/ErrorResponse"
38+
operationId: get-tokens-by-address

β€Ždata/v1.yaml

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# To Update:
22
# rdme openapi v1.yaml --key=<key> --id=67cb0078f56864003061cf66
3+
#
4+
# TODO: Better organize this.
5+
#
36
openapi: 3.1.0
47
info:
58
title: 🧠 Data
@@ -17,50 +20,13 @@ paths:
1720
####################################################
1821
"/{apiKey}/assets/tokens/by-address":
1922
post:
20-
summary: Tokens By Wallet
21-
description: >
22-
Fetches current balances, prices, and metadata for multiple addresses using network and address pairs. Returns a list of token balances, each containing the network and address. This endpoint is supported on Ethereum, Solana, and 30+ EVM chains. See the full list of supported networks [here](https://dashboard.alchemy.com/chains?service=token-api&utm_source=readme&utm_medium=link&utm_campaign=docs_method_chains_link_v1_tokens).
23-
tags: ["πŸ†• Multi-Chain Token APIs (Beta)"]
24-
x-readme:
25-
samples-languages:
26-
- javascript
27-
- curl
28-
- python
29-
- go
30-
parameters:
31-
- $ref: '#/components/schemas/apiKey'
32-
requestBody:
33-
required: true
34-
content:
35-
application/json:
36-
schema:
37-
$ref: "#/components/schemas/ByAddressRequestWithOptions"
38-
responses:
39-
"200":
40-
description: Successful response!
41-
content:
42-
application/json:
43-
schema:
44-
$ref: "#/components/schemas/TokensResponse"
45-
"400":
46-
description: 'Bad Request: Invalid input (e.g., malformed JSON).'
47-
content:
48-
application/json:
49-
schema:
50-
$ref: "#/components/schemas/ErrorResponse"
51-
"429":
52-
description: 'Too Many Requests: Rate limit exceeded.'
53-
content:
54-
application/json:
55-
schema:
56-
$ref: "#/components/schemas/ErrorResponse"
57-
operationId: get-tokens-by-address
23+
$ref: './assets/tokens/by-address.yaml'
5824
"/{apiKey}/assets/tokens/balances/by-address":
5925
post:
6026
summary: Token Balances By Wallet
6127
description: >
6228
Fetches current balances for multiple addresses using network and address pairs. Returns a list of token balances, each containing the network and address. This endpoint is supported on Ethereum, Solana, and 30+ EVM chains. See the full list of supported networks [here](https://dashboard.alchemy.com/chains?service=token-api&utm_source=readme&utm_medium=link&utm_campaign=docs_method_chains_link_v1_tokens)
63-
tags: ["πŸ†• Multi-Chain Token APIs (Beta)"]
29+
tags: ["πŸ“š Portfolio APIs"]
6430
x-readme:
6531
samples-languages:
6632
- javascript
@@ -103,7 +69,7 @@ paths:
10369
summary: NFTs By Owner
10470
description: >
10571
Retrieves all NFTs currently owned by multiple addresses using network and address pairs. This endpoint is supported on Ethereum and many L2s, including Polygon, Arbitrum, Optimism, Base, World Chain and more. See the full list of supported networks [here](https://dashboard.alchemy.com/chains?service=token-api&utm_source=readme&utm_medium=link&utm_campaign=docs_method_chains_link_v1_tokens).
106-
tags: ["πŸ†• Multi-Chain NFT APIs (Beta)"]
72+
tags: ["πŸ“š Portfolio APIs"]
10773
x-readme:
10874
samples-languages:
10975
- javascript
@@ -143,7 +109,7 @@ paths:
143109
summary: Contracts By Owner
144110
description: >
145111
Retrieves all NFT contracts currently owned by multiple addresses using network and address pairs. This endpoint is supported on Ethereum and many L2s, including Polygon, Arbitrum, Optimism, Base, World Chain and more. See the full list of supported networks [here](https://dashboard.alchemy.com/chains?service=token-api&utm_source=readme&utm_medium=link&utm_campaign=docs_method_chains_link_v1_tokens).
146-
tags: ["πŸ†• Multi-Chain NFT APIs (Beta)"]
112+
tags: ["πŸ“š Portfolio APIs"]
147113
x-readme:
148114
samples-languages:
149115
- javascript
@@ -186,7 +152,7 @@ paths:
186152
summary: Transaction History By Wallet
187153
description: >
188154
Fetches all transactions addresses using network and address pairs (currently limited to 1 in BETA) Returns a list of transaction objects. This endpoint will be supported on Ethereum, Solana, and 30+ EVM chains (currently limited to ETH and Base)
189-
tags: ["πŸ†• Multi-Chain Transaction History APIs (Beta)"]
155+
tags: ["πŸ“š Portfolio APIs"]
190156
x-readme:
191157
samples-languages:
192158
- javascript

0 commit comments

Comments
Β (0)