Skip to content

feat: tokens endpoint#129

Open
alexbarnsley wants to merge 7 commits intofeat/mainsailfrom
feat/tokens-endpoint
Open

feat: tokens endpoint#129
alexbarnsley wants to merge 7 commits intofeat/mainsailfrom
feat/tokens-endpoint

Conversation

@alexbarnsley
Copy link
Member

@alexbarnsley alexbarnsley commented Mar 4, 2026

Summary

https://app.clickup.com/t/86e00w3wy

I didn't add any special handling for minBalance as it's just an additional query/parameter as far as I understand it 🤔

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the new tokens endpoints to the ArkEcosystem PHP client, exposing a tokens() accessor on ArkClient and a dedicated Tokens API class, with accompanying request/URL-shape tests.

Changes:

  • Introduce ArkEcosystem\Client\API\Tokens with methods for listing tokens, fetching a token, holders, transfers, and whitelist.
  • Add ArkClient::tokens() accessor to instantiate the new API.
  • Add TokensTest coverage for the new endpoints’ request method + URL paths.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/ArkClient.php Exposes the new Tokens API via tokens() on the client.
src/API/Tokens.php Implements request methods for tokens-related endpoints (GET + POST variant).
tests/API/TokensTest.php Verifies the HTTP method + URL path for tokens endpoints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

alexbarnsley and others added 2 commits March 4, 2026 12:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alexbarnsley alexbarnsley marked this pull request as ready for review March 4, 2026 12:54
@alexbarnsley alexbarnsley marked this pull request as draft March 4, 2026 13:02
@alexbarnsley alexbarnsley marked this pull request as ready for review March 4, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants