定制 happyslucker/change-now-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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-api
    

    Creating 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.

ChangeNOW Api Documentation

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固