happyslucker/change-now-api
最新稳定版本:v1.0.0
Composer 安装命令:
composer require happyslucker/change-now-api
包简介
The ChangeNowApi Client Library is a powerful and user-friendly tool designed for developers looking to integrate the ChangeNow cryptocurrency exchange API into their applications. This library simplifies the process of interacting with ChangeNow's extensive range of services, enabling seamless cryp
README 文档
README
The ChangeNowApi Client Library is a powerful and user-friendly tool designed for developers looking to integrate the ChangeNow cryptocurrency exchange API into their applications. This library simplifies the process of interacting with ChangeNow's extensive range of services, enabling seamless cryptocurrency exchanges and transaction monitoring.
Features
- Easy Integration:
- Library provides straightforward interface connected to ChangeNow API
- Allows developers to quickly implement cryptocurrency exchange functionalities in their applications
- Comprehensive API Coverage:
- Access most major functionalities offered by ChangeNow
- Instant swaps between various cryptocurrencies
- Tracking of transaction status
- Ability to use both versions of API.
Use Cases
- Crypto Wallet Applications: Integrate ChangeNow's exchange capabilities into wallet applications, allowing users to swap cryptocurrencies effortlessly.
- Trading Platforms: Enhance trading platforms with the ability to perform instant exchanges between various crypto assets.
- Financial Services: Build applications that require cryptocurrency conversion services, enabling users to manage their digital assets with ease.
Installation
composer require happyslucker/change-now-apiCreating a transaction | Example
$changeNowApiClient = new ChangeNowApiClient($apiKey);
// Creating transaction by V1 API
$minimalAmount = $changeNowApiClient->v1->exchangeService->getMinimalAmount(
"btc", "eth"
)->minAmount;
$transaction = $changeNowApiClient->v1->transactionService->createTransaction([
"from" => "btc",
"to" => "eth",
"amount" => $minimalAmount,
"address" => "0xa14177e294f86baef97a510debc2ebf917dc91fa",
]
);
// Creating transaction by V2 API
$minimalAmount = $changeNowApiClient->v2->exchangeService->getMinimalAmount(
"btc", "btc", "eth", "eth"
)->minAmount;
$transaction = $changeNowApiClient->v2->transactionService->createTransaction([
"fromCurrency" => "btc",
"fromNetwork" => "btc",
"toCurrency" => "eth",
"toNetwork" => "eth",
"fromAmount" => $minimalAmount,
"address" => "0xa14177e294f86baef97a510debc2ebf917dc91fa"
]
);
Important Notes
Only those methods that are available without an affiliate program are implemented.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-28