Download the PHP package howrareis/helius-php-sdk without Composer
On this page you can find all versions of the php package howrareis/helius-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download howrareis/helius-php-sdk
More information about howrareis/helius-php-sdk
Files in howrareis/helius-php-sdk
Package helius-php-sdk
Short Description Unofficial Helius PHP SDK
License MIT
Homepage https://github.com/howrareis/helius-php-sdk
Informations about the package helius-php-sdk
Helius PHP SDK
Unofficial Helius PHP SDK is an opinionated (i.e. might not follow the same conventions as TypeScript version) port of the official Helius SDK
Not all features from the official SDK are implemented. Some will never be implemented, because they are not needed in PHP version of the SDK. Some missing features will be implemented in the future. This SDK will have features or conveniences that are not present in the official SDK.
Helius API is very functional and not all of its features are covered by this SDK. If you want some new features to be added / new endpoints to be handled, open an issue or create a pull request.
Consult official Helius API docs before using SDK to learn about methods and their limitations. In most cases SDK will not handle data validation. That's responsibility of the end user.
If you don't have Helius API key yet, you can get one here.
Installation
You can install the package via composer:
Usage
Webhooks
Consult official Helius API docs. before using SDK to learn about webhooks and their limitations.
Create webhook
Get all webhooks
Get webhook by id
Edit webhook
In the API call to update webhook you need to submit full data for the webhook. To make updates more convenient editWebhook()
method will retrieve original data
and overwrite only parts you have specified in the update.
Append addresses to webhook
Max 100 000 addresses can be added to the webhook. If you try to add more than that, you will get an error.
Delete webhook
Create collection webhook
This is another convenience method. Behind the scenes it will try to fetch mintlist for the collection and will create a webhook with all NFT addresses from the mintlist.
Get mintlist
All mintlist retrieval methods by default will return unmodified data from API response. It will include mints and names of the NFTs. However, if you are interested only in NFT addresses you can pass second argument as true. That will extract only NFT addresses from the response and will return as one array.
or
Get mintlist from Collection address
Get mintlist from Creator address
Get mintlist from NFT address (mint hash)
Behind the scenes SDK will first call NFT Fingerprint API to find out Creator address and Collection address. If any of the two will be found they will be used to retrieve mintlist. Collection address will have higher priority.
Get fingerprints for NFTs
You can pass one mint as a string or multiple mints as an array. Max 1000 mints per request.
If you want to extract one specific field from returned data (like activeListings) you can use second argument.
In response, you will get associated array with mint hashes as keys and values as requested field. If field is not found, you will get false.