Download the PHP package stellitecoin/stellitepay-api without Composer
On this page you can find all versions of the php package stellitecoin/stellitepay-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stellitecoin/stellitepay-api
More information about stellitecoin/stellitepay-api
Files in stellitecoin/stellitepay-api
Package stellitepay-api
Short Description StellitePay API PHP Class
License MIT
Homepage https://github.com/stelllitecoin/stellitepay-api
Informations about the package stellitepay-api
StellitePay API
Overview
Please notice! This API is still under development and only people with a MERCHANT/INTEGRATOR KEY can use it at the moment.
Installation
Using composer
composer require stellitecoin/stellitepay
Include composer autoload
require_once __DIR__ . '/vendor/autoload.php';
Now you can use in your code with your vendor's integrator key
To view more example checkout example.php
Structure
- Format
- Request Format
- Request & Response Examples
- Error Handling
Format etc.
1 UNIT: 0.01 XTL
Stellite Address: ^Se\d[0-9A-Za-z]{94}$
Stellite Integrated Address: ^SEi[0-9A-Za-z]{104}$
'INTERN_TXID/INTERN_FEE': If a transaction is made within the system the transaction will be marked with a fixed transaction fee and intern txid
Request Format
Please provide Header: Content-Type:application/json Authorization: Bearer
Request & Response Examples
POST /v1/register
Example Request (POST):
Result:
POST /v1/login
Example Request (POST):
Result:
GET /v1/balance
Example Request (GET):
Result:
POST /v1/logout
Example Request (POST):
Result:
POST /v1/activate
Example Request (POST):
Result:
POST /v1/transfer
Example Request (POST):
Result:
GET /v1/transactions (MAX. 5) | GET /v1/alltransactions (ALL)
Example Request (GET):
Result:
GET /v1/addressbook
Example Request (GET):
Result:
POST /v1/addressbook
Example Request (POST):
Result:
DELETE /v1/addressbook
Example Request (DELETE):
Result:
POST /v1/search
Example Request (DELETE):
Result:
Error Handling Outdated
Error Message | Description | Handling |
---|---|---|
0 | Wrong IntAuth | Please enter a valid Integrator Authentification |
1 | Wrong Parameter | Please enter all of the needed Parameter |
2 | Wrong id/auth | Check both Parameters |
3 | Empty address or wrong Format | Amount > 0 and right ADDRESS format |
4 | Withdraw couldn't be inserted | Please check your Database or contact the Support |
5 | Something went wrong with the balance | Please check your Database or contact the Support |
6 | RPC call error | Please check the RPC (online?, synced?, right wallet?) |
7 | Not enough balance | Please enter a lower amount (min. Balance = 5 XTL) |
8 | Address type 1/2 is ATM not available | Please wait :) |
9 | Empty Addressbook | Set at least one Address |
10 | Error while inserting new Address | Check all Parameters |
11 | No Deposits | Please deposit first |
12 | Spam Error | Please let enough time between the queries to prevent overlapping queries |
13 | Email doesn't exists | Please enter an email address, which is registered |
14 | Same User | You can't transact XTL between the same User |
15 | Database Error | Please contact the Support |
16 | More coming | soon! |
Authors
- Philip Jovanovic - Initial work - Stellite Dev
See also the list of contributors who participated in this project.