|
| 1 | +--- |
| 2 | +id: get-token-holder-count-by-contract-address |
| 3 | +title: "Get Token Holder Count by Contract Address" |
| 4 | +description: "Returns the number of token holders for a given contract address." |
| 5 | +sidebar_label: "Get Token Holder Count by Contract Address" |
| 6 | +hide_title: true |
| 7 | +hide_table_of_contents: true |
| 8 | +api: eJzNVU1v2zgQ/SsETy2gWrabNqluRjZoAxTdRZOegqCgqbHFRiLZ4dCJYei/F0NJrmO7SffjsD5YNjUzfPPefGxkCUGj8WSclYX8DBTRBkEVCBubOaBwC0HuDqyoXF0CBrFwKJRYmhVYoZ0lVJqEKkuEEEYyk16haoAAgyxuNtKqBmQhB8veUGbS8IXfI+BaZhLhezQIpSwII2R7sK4rOLgqAaugB0dOIBAaWEEPVGgXLTFaBhV0BY2SxUbS2jOeQGjsUraZhAfV+JrPxg9nk7kGNX799vSsnGhYnJy9Hr87mU6np6fTcfnmZKrU5M3Z5FS22TYz5c0drP9eQrO/LsUdrDsuI1VgyWjFL38brGxv+ZbgnQ0Q2Hg6HvNjj7od7XpKBqJKEaLWEMIi1vWaL2aOwRJHUd7XPaT8W+BQm0Ncbv4NNLHm6DwgmQ5IIEUxHOLfZ+Eq2QntShjUHBIacbIIIda0E8dYgiXgQaDrZ8qVI/+qYNtMNhCCWsLzgGdlafinqoWxC4dN4kc4FH0IoeYu0n4m6ZPJk2P6XNqVqk15pLxRDFUSIosB5f9DIkB0+Fio3ybwIvkOZMGDr5Wxxi5TYBNC3NKVolLlSlnIJaQEFFWykLnyJk8Sd99fO6G/ptrm5gFcDbMnYi0LWRH5UOS582CVNyPtEErlRg6Xeeoi1jJhN5Raa+aN+MPp2IClRO9hIRyxIMAm/Lm4AlwZzWEi2oIcj7raaLAh8dMPjZlXugIxHY1ltgOzyPP7+/uRSm8TwN415B8vzy8+XV28Ypc2k5xjh2XSHXgXqFF25473QKJr/w9d+5+n9p+vxflQbLPtNH6U3+Znmf0nK6EvCoIHypPkDDhlvellveExypYcd3g+lvY2k5ULxLabzVwF+IJ12/JxN3NZ8NIENa956i5UHfbH7m5aLz73A/ql+Pfb5Wh+vBSO7b2VqmM3wLN/CPjp7fEEmO2q+onhlv+gYRCyuLltM1mBKgETnZ3XTGvwtON1MHg4yrZb319cy7b9AdKV5qI= |
| 9 | +sidebar_class_name: "get api-method" |
| 10 | +info_path: docs/api/mainnet/api-documentation |
| 11 | +custom_edit_url: null |
| 12 | +--- |
| 13 | + |
| 14 | +import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; |
| 15 | +import ParamsDetails from "@theme/ParamsDetails"; |
| 16 | +import RequestSchema from "@theme/RequestSchema"; |
| 17 | +import StatusCodes from "@theme/StatusCodes"; |
| 18 | +import OperationTabs from "@theme/OperationTabs"; |
| 19 | +import TabItem from "@theme/TabItem"; |
| 20 | +import Heading from "@theme/Heading"; |
| 21 | + |
| 22 | +<Heading |
| 23 | + as={"h1"} |
| 24 | + className={"openapi__heading"} |
| 25 | + children={"Get Token Holder Count by Contract Address"} |
| 26 | +> |
| 27 | +</Heading> |
| 28 | + |
| 29 | +<MethodEndpoint |
| 30 | + method={"get"} |
| 31 | + path={"/api/token/token_holder_count"} |
| 32 | + context={"endpoint"} |
| 33 | +> |
| 34 | + |
| 35 | +</MethodEndpoint> |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +Returns the number of token holders for a given contract address. |
| 40 | + |
| 41 | +<Heading |
| 42 | + id={"request"} |
| 43 | + as={"h2"} |
| 44 | + className={"openapi-tabs__heading"} |
| 45 | + children={"Request"} |
| 46 | +> |
| 47 | +</Heading> |
| 48 | + |
| 49 | +<ParamsDetails |
| 50 | + parameters={[{"name":"contractaddress","in":"query","required":true,"description":"The contract address of the token to retrieve holder count for.","schema":{"type":"string"},"example":"0x81bcea03678d1cef4830942227720d542aa15817"},{"name":"apikey","in":"query","required":true,"description":"API key for authentication.","schema":{"type":"string"},"example":""}]} |
| 51 | +> |
| 52 | + |
| 53 | +</ParamsDetails> |
| 54 | + |
| 55 | +<RequestSchema |
| 56 | + title={"Body"} |
| 57 | + body={undefined} |
| 58 | +> |
| 59 | + |
| 60 | +</RequestSchema> |
| 61 | + |
| 62 | +<StatusCodes |
| 63 | + id={undefined} |
| 64 | + label={undefined} |
| 65 | + responses={{"200":{"description":"Token holder count retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"Status code of the response."},"result":{"type":"integer","description":"The number of token holders for the given contract address."},"message":{"type":"string","description":"Additional information or message about the response."}}}}}},"400":{"description":"Invalid contract address or API key supplied.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"Status code of the error response."},"message":{"type":"string","description":"Error message explaining the issue."}}}}}}}} |
| 66 | +> |
| 67 | + |
| 68 | +</StatusCodes> |
| 69 | + |
| 70 | + |
| 71 | + |
0 commit comments