@@ -747,7 +747,7 @@ const docTemplate = `{
747747 "type": "string",
748748 "description": "Type of token",
749749 "name": "token_type",
750- "in": "path "
750+ "in": "query "
751751 },
752752 {
753753 "type": "boolean",
@@ -813,6 +813,109 @@ const docTemplate = `{
813813 }
814814 }
815815 },
816+ "/{chainId}/tokens/{address}": {
817+ "get": {
818+ "security": [
819+ {
820+ "BasicAuth": []
821+ }
822+ ],
823+ "description": "Retrieve token IDs by type for a specific token address",
824+ "consumes": [
825+ "application/json"
826+ ],
827+ "produces": [
828+ "application/json"
829+ ],
830+ "tags": [
831+ "tokens"
832+ ],
833+ "summary": "Get token IDs by type for a specific token address",
834+ "parameters": [
835+ {
836+ "type": "string",
837+ "description": "Chain ID",
838+ "name": "chainId",
839+ "in": "path",
840+ "required": true
841+ },
842+ {
843+ "type": "string",
844+ "description": "Token address",
845+ "name": "address",
846+ "in": "path",
847+ "required": true
848+ },
849+ {
850+ "type": "string",
851+ "description": "Type of token (erc721 or erc1155)",
852+ "name": "token_type",
853+ "in": "query"
854+ },
855+ {
856+ "type": "boolean",
857+ "description": "Hide zero balances",
858+ "name": "hide_zero_balances",
859+ "in": "query",
860+ "required": true
861+ },
862+ {
863+ "type": "integer",
864+ "description": "Page number for pagination",
865+ "name": "page",
866+ "in": "query"
867+ },
868+ {
869+ "type": "integer",
870+ "default": 5,
871+ "description": "Number of items per page",
872+ "name": "limit",
873+ "in": "query"
874+ }
875+ ],
876+ "responses": {
877+ "200": {
878+ "description": "OK",
879+ "schema": {
880+ "allOf": [
881+ {
882+ "$ref": "#/definitions/api.QueryResponse"
883+ },
884+ {
885+ "type": "object",
886+ "properties": {
887+ "data": {
888+ "type": "array",
889+ "items": {
890+ "$ref": "#/definitions/handlers.TokenIdModel"
891+ }
892+ }
893+ }
894+ }
895+ ]
896+ }
897+ },
898+ "400": {
899+ "description": "Bad Request",
900+ "schema": {
901+ "$ref": "#/definitions/api.Error"
902+ }
903+ },
904+ "401": {
905+ "description": "Unauthorized",
906+ "schema": {
907+ "$ref": "#/definitions/api.Error"
908+ }
909+ },
910+ "500": {
911+ "description": "Internal Server Error",
912+ "schema": {
913+ "$ref": "#/definitions/api.Error"
914+ }
915+ }
916+ }
917+ }
918+ },
816919 "/{chainId}/transactions": {
817920 "get": {
818921 "security": [
@@ -1359,12 +1462,18 @@ const docTemplate = `{
13591462 "indexedParams": {
13601463 "type": "object"
13611464 },
1465+ "indexed_params": {
1466+ "type": "object"
1467+ },
13621468 "name": {
13631469 "type": "string"
13641470 },
13651471 "nonIndexedParams": {
13661472 "type": "object"
13671473 },
1474+ "non_indexed_params": {
1475+ "type": "object"
1476+ },
13681477 "signature": {
13691478 "type": "string"
13701479 }
@@ -1678,6 +1787,9 @@ const docTemplate = `{
16781787 },
16791788 "token_id": {
16801789 "type": "string"
1790+ },
1791+ "token_type": {
1792+ "type": "string"
16811793 }
16821794 }
16831795 },
@@ -1692,6 +1804,9 @@ const docTemplate = `{
16921804 },
16931805 "token_id": {
16941806 "type": "string"
1807+ },
1808+ "token_type": {
1809+ "type": "string"
16951810 }
16961811 }
16971812 },
@@ -1739,6 +1854,17 @@ const docTemplate = `{
17391854 "SearchResultTypeAddress",
17401855 "SearchResultTypeContract"
17411856 ]
1857+ },
1858+ "handlers.TokenIdModel": {
1859+ "type": "object",
1860+ "properties": {
1861+ "token_id": {
1862+ "type": "string"
1863+ },
1864+ "token_type": {
1865+ "type": "string"
1866+ }
1867+ }
17421868 }
17431869 },
17441870 "securityDefinitions": {
0 commit comments