22import type { MinimalBlueprintSpec } from "./utils" ;
33
44export const insightBlueprints : MinimalBlueprintSpec [ ] = [
5+ {
6+ id : "events" ,
7+ name : "Events" ,
8+ paths : [
9+ {
10+ name : "Get events" ,
11+ path : "/v1/events" ,
12+ method : "get" ,
13+ } ,
14+ {
15+ name : "Get contract events" ,
16+ path : "/v1/events/{contractAddress}" ,
17+ method : "get" ,
18+ } ,
19+ {
20+ name : "Get contract events with specific signature" ,
21+ path : "/v1/events/{contractAddress}/{signature}" ,
22+ method : "get" ,
23+ } ,
24+ ] ,
25+ } ,
526 {
627 id : "transactions" ,
728 name : "Transactions" ,
829 paths : [
930 {
1031 name : "Get transactions" ,
1132 path : "/v1/transactions" ,
33+ method : "get" ,
1234 } ,
1335 {
1436 name : "Get contract transactions" ,
1537 path : "/v1/transactions/{contractAddress}" ,
38+ method : "get" ,
1639 } ,
1740 {
1841 name : "Get contract transactions with specific signature" ,
1942 path : "/v1/transactions/{contractAddress}/{signature}" ,
20- } ,
21- {
22- name : "Get wallet transactions" ,
23- path : "/v1/wallets/{wallet_address}/transactions" ,
43+ method : "get" ,
2444 } ,
2545 ] ,
2646 } ,
2747 {
28- id : "events " ,
29- name : "Events " ,
48+ id : "blocks " ,
49+ name : "Blocks " ,
3050 paths : [
3151 {
32- name : "Get events" ,
33- path : "/v1/events" ,
34- } ,
35- {
36- name : "Get contract events" ,
37- path : "/v1/events/{contractAddress}" ,
38- } ,
39- {
40- name : "Get contract events with specific signature" ,
41- path : "/v1/events/{contractAddress}/{signature}" ,
52+ name : "Get blocks" ,
53+ path : "/v1/blocks" ,
54+ method : "get" ,
4255 } ,
4356 ] ,
4457 } ,
@@ -49,82 +62,47 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
4962 {
5063 name : "Get token transfers by transaction" ,
5164 path : "/v1/tokens/transfers/transaction/{transaction_hash}" ,
65+ method : "get" ,
5266 } ,
5367 {
5468 name : "Get token transfers by contract" ,
5569 path : "/v1/tokens/transfers/{contract_address}" ,
70+ method : "get" ,
5671 } ,
5772 {
5873 name : "Get token transfers by wallet address" ,
5974 path : "/v1/tokens/transfers" ,
75+ method : "get" ,
6076 } ,
6177 {
6278 name : "Get ERC-20 balances by address" ,
6379 path : "/v1/tokens/erc20/{ownerAddress}" ,
80+ method : "get" ,
6481 } ,
6582 {
6683 name : "Get ERC-721 balances by address" ,
6784 path : "/v1/tokens/erc721/{ownerAddress}" ,
85+ method : "get" ,
6886 } ,
6987 {
7088 name : "Get ERC-1155 balances by address" ,
7189 path : "/v1/tokens/erc1155/{ownerAddress}" ,
90+ method : "get" ,
7291 } ,
7392 {
7493 name : "Get supported tokens for price data" ,
7594 path : "/v1/tokens/price/supported" ,
95+ method : "get" ,
7696 } ,
7797 {
7898 name : "Get token price" ,
7999 path : "/v1/tokens/price" ,
100+ method : "get" ,
80101 } ,
81102 {
82103 name : "Token lookup" ,
83104 path : "/v1/tokens/lookup" ,
84- } ,
85- ] ,
86- } ,
87- {
88- id : "resolve" ,
89- name : "Resolve" ,
90- paths : [
91- {
92- name : "Resolve" ,
93- path : "/v1/resolve/{input}" ,
94- } ,
95- ] ,
96- } ,
97- {
98- id : "blocks" ,
99- name : "Blocks" ,
100- paths : [
101- {
102- name : "Get blocks" ,
103- path : "/v1/blocks" ,
104- } ,
105- ] ,
106- } ,
107- {
108- id : "contracts" ,
109- name : "Contracts" ,
110- paths : [
111- {
112- name : "Get contract ABI" ,
113- path : "/v1/contracts/abi/{contractAddress}" ,
114- } ,
115- {
116- name : "Get contract metadata" ,
117- path : "/v1/contracts/metadata/{contractAddress}" ,
118- } ,
119- ] ,
120- } ,
121- {
122- id : "decode" ,
123- name : "Decode" ,
124- paths : [
125- {
126- name : "Unknown" ,
127- path : "/v1/decode/{contractAddress}" ,
105+ method : "get" ,
128106 } ,
129107 ] ,
130108 } ,
@@ -135,50 +113,62 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
135113 {
136114 name : "Get collection" ,
137115 path : "/v1/nfts/collections/{contract_address}" ,
116+ method : "get" ,
138117 } ,
139118 {
140119 name : "Get NFTs by owner" ,
141120 path : "/v1/nfts" ,
121+ method : "get" ,
142122 } ,
143123 {
144124 name : "Get NFT owners by contract" ,
145125 path : "/v1/nfts/owners/{contract_address}" ,
126+ method : "get" ,
146127 } ,
147128 {
148129 name : "Get NFT owners by token" ,
149130 path : "/v1/nfts/owners/{contract_address}/{token_id}" ,
131+ method : "get" ,
150132 } ,
151133 {
152134 name : "Get NFT transfers by owner" ,
153135 path : "/v1/nfts/transfers" ,
136+ method : "get" ,
154137 } ,
155138 {
156139 name : "Get NFT transfers by transaction" ,
157140 path : "/v1/nfts/transfers/transaction/{transaction_hash}" ,
141+ method : "get" ,
158142 } ,
159143 {
160144 name : "Get NFT transfers by contract" ,
161145 path : "/v1/nfts/transfers/{contract_address}" ,
146+ method : "get" ,
162147 } ,
163148 {
164149 name : "Get NFTs by contract" ,
165150 path : "/v1/nfts/{contract_address}" ,
151+ method : "get" ,
166152 } ,
167153 {
168154 name : "Get NFT transfers by token" ,
169155 path : "/v1/nfts/transfers/{contract_address}/{token_id}" ,
156+ method : "get" ,
170157 } ,
171158 {
172159 name : "Get NFT by token ID" ,
173160 path : "/v1/nfts/{contract_address}/{token_id}" ,
161+ method : "get" ,
174162 } ,
175163 {
176164 name : "Force refresh collection metadata" ,
177165 path : "/v1/nfts/metadata/refresh/{contract_address}" ,
166+ method : "get" ,
178167 } ,
179168 {
180169 name : "Force refresh token metadata" ,
181170 path : "/v1/nfts/metadata/refresh/{contract_address}/{token_id}" ,
171+ method : "get" ,
182172 } ,
183173 ] ,
184174 } ,
@@ -189,6 +179,45 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
189179 {
190180 name : "Get wallet transactions" ,
191181 path : "/v1/wallets/{wallet_address}/transactions" ,
182+ method : "get" ,
183+ } ,
184+ ] ,
185+ } ,
186+ {
187+ id : "contracts" ,
188+ name : "Contracts" ,
189+ paths : [
190+ {
191+ name : "Get contract ABI" ,
192+ path : "/v1/contracts/abi/{contractAddress}" ,
193+ method : "get" ,
194+ } ,
195+ {
196+ name : "Get contract metadata" ,
197+ path : "/v1/contracts/metadata/{contractAddress}" ,
198+ method : "get" ,
199+ } ,
200+ ] ,
201+ } ,
202+ {
203+ id : "decode" ,
204+ name : "Decode" ,
205+ paths : [
206+ {
207+ name : "Decode logs and transactions" ,
208+ path : "/v1/decode/{contractAddress}" ,
209+ method : "post" ,
210+ } ,
211+ ] ,
212+ } ,
213+ {
214+ id : "resolve" ,
215+ name : "Resolve" ,
216+ paths : [
217+ {
218+ name : "Resolve" ,
219+ path : "/v1/resolve/{input}" ,
220+ method : "get" ,
192221 } ,
193222 ] ,
194223 } ,
0 commit comments