承接 symbol-blockchain-community/symbol-rest-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

symbol-blockchain-community/symbol-rest-client

Composer 安装命令:

composer require symbol-blockchain-community/symbol-rest-client

包简介

OpenAPI Specification of catapult-rest

README 文档

README

OpenAPI Specification of catapult-rest

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new SymbolRestClient\Api\AccountRoutesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$account_id = 'account_id_example'; // string | Account public key or address encoded using a 32-character set.

try {
    $result = $apiInstance->getAccountInfo($account_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountRoutesApi->getAccountInfo: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost:3000

Class Method HTTP request Description
AccountRoutesApi getAccountInfo GET /accounts/{accountId} Get account information
AccountRoutesApi getAccountInfoMerkle GET /accounts/{accountId}/merkle Get account merkle information
AccountRoutesApi getAccountsInfo POST /accounts Get accounts information
AccountRoutesApi searchAccounts GET /accounts Search accounts
BlockRoutesApi getBlockByHeight GET /blocks/{height} Get block information
BlockRoutesApi getMerkleReceipts GET /blocks/{height}/statements/{hash}/merkle Get the merkle path for a given a receipt statement hash and block
BlockRoutesApi getMerkleTransaction GET /blocks/{height}/transactions/{hash}/merkle Get the merkle path for a given a transaction and block
BlockRoutesApi searchBlocks GET /blocks Search blocks
ChainRoutesApi getChainInfo GET /chain/info Get the current information of the chain
FinalizationRoutesApi getFinalizationProofAtEpoch GET /finalization/proof/epoch/{epoch} Get finalization proof
FinalizationRoutesApi getFinalizationProofAtHeight GET /finalization/proof/height/{height} Get finalization proof
HashLockRoutesApi getHashLock GET /lock/hash/{hash} Get hash lock information
HashLockRoutesApi getHashLockMerkle GET /lock/hash/{hash}/merkle Get hash lock merkle information
HashLockRoutesApi searchHashLock GET /lock/hash Search hash lock entries
MetadataRoutesApi getMetadata GET /metadata/{compositeHash} Get metadata information
MetadataRoutesApi getMetadataMerkle GET /metadata/{compositeHash}/merkle Get metadata merkle information
MetadataRoutesApi searchMetadataEntries GET /metadata Search metadata entries
MosaicRoutesApi getMosaic GET /mosaics/{mosaicId} Get mosaic information
MosaicRoutesApi getMosaicMerkle GET /mosaics/{mosaicId}/merkle Get mosaic merkle information
MosaicRoutesApi getMosaics POST /mosaics Get mosaics information for an array of mosaics
MosaicRoutesApi searchMosaics GET /mosaics Search mosaics
MultisigRoutesApi getAccountMultisig GET /account/{address}/multisig Get multisig account information
MultisigRoutesApi getAccountMultisigGraph GET /account/{address}/multisig/graph Get multisig account graph information
MultisigRoutesApi getAccountMultisigMerkle GET /account/{address}/multisig/merkle Get multisig account merkle information
NamespaceRoutesApi getAccountsNames POST /namespaces/account/names Get readable names for a set of accountIds
NamespaceRoutesApi getMosaicsNames POST /namespaces/mosaic/names Get readable names for a set of mosaics
NamespaceRoutesApi getNamespace GET /namespaces/{namespaceId} Get namespace information
NamespaceRoutesApi getNamespaceMerkle GET /namespaces/{namespaceId}/merkle Get namespace merkle information
NamespaceRoutesApi getNamespacesNames POST /namespaces/names Get readable names for a set of namespaces
NamespaceRoutesApi searchNamespaces GET /namespaces Search namespaces
NetworkRoutesApi getNetworkProperties GET /network/properties Get the network properties
NetworkRoutesApi getNetworkType GET /network Get the current network type of the chain
NetworkRoutesApi getRentalFees GET /network/fees/rental Get rental fees information
NetworkRoutesApi getTransactionFees GET /network/fees/transaction Get transaction fees information
NodeRoutesApi getNodeHealth GET /node/health Get the node health information
NodeRoutesApi getNodeInfo GET /node/info Get the node information
NodeRoutesApi getNodePeers GET /node/peers Get peers information
NodeRoutesApi getNodeStorage GET /node/storage Get the storage information of the node
NodeRoutesApi getNodeTime GET /node/time Get the node time
NodeRoutesApi getServerInfo GET /node/server Get the version of the running REST component
NodeRoutesApi getUnlockedAccount GET /node/unlockedaccount Get the unlocked harvesting account public keys.
ReceiptRoutesApi searchAddressResolutionStatements GET /statements/resolutions/address Get receipts address resolution statements
ReceiptRoutesApi searchMosaicResolutionStatements GET /statements/resolutions/mosaic Get receipts mosaic resolution statements
ReceiptRoutesApi searchReceipts GET /statements/transaction Search transaction statements
RestrictionAccountRoutesApi getAccountRestrictions GET /restrictions/account/{address} Get the account restrictions
RestrictionAccountRoutesApi getAccountRestrictionsMerkle GET /restrictions/account/{address}/merkle Get the account restrictions merkle
RestrictionAccountRoutesApi searchAccountRestrictions GET /restrictions/account Search account restrictions
RestrictionMosaicRoutesApi getMosaicRestrictions GET /restrictions/mosaic/{compositeHash} Get the mosaic restrictions
RestrictionMosaicRoutesApi getMosaicRestrictionsMerkle GET /restrictions/mosaic/{compositeHash}/merkle Get the mosaic restrictions merkle
RestrictionMosaicRoutesApi searchMosaicRestrictions GET /restrictions/mosaic Search mosaic restrictions
SecretLockRoutesApi getSecretLock GET /lock/secret/{compositeHash} Get secret lock information
SecretLockRoutesApi getSecretLockMerkle GET /lock/secret/{compositeHash}/merkle Get secret lock merkle information
SecretLockRoutesApi searchSecretLock GET /lock/secret Search secret lock entries
TransactionRoutesApi announceCosignatureTransaction PUT /transactions/cosignature Announce a cosignature transaction
TransactionRoutesApi announcePartialTransaction PUT /transactions/partial Announce an aggregate bonded transaction
TransactionRoutesApi announceTransaction PUT /transactions Announce a new transaction
TransactionRoutesApi getConfirmedTransaction GET /transactions/confirmed/{transactionId} Get confirmed transaction information
TransactionRoutesApi getConfirmedTransactions POST /transactions/confirmed Get confirmed trasactions information
TransactionRoutesApi getPartialTransaction GET /transactions/partial/{transactionId} Get partial transaction information
TransactionRoutesApi getPartialTransactions POST /transactions/partial Get partial trasactions information
TransactionRoutesApi getUnconfirmedTransaction GET /transactions/unconfirmed/{transactionId} Get unconfirmed transaction information
TransactionRoutesApi getUnconfirmedTransactions POST /transactions/unconfirmed Get unconfirmed trasactions information
TransactionRoutesApi searchConfirmedTransactions GET /transactions/confirmed Search confirmed transactions
TransactionRoutesApi searchPartialTransactions GET /transactions/partial Search partial transactions
TransactionRoutesApi searchUnconfirmedTransactions GET /transactions/unconfirmed Search unconfirmed transactions
TransactionStatusRoutesApi getTransactionStatus GET /transactionStatus/{hash} Get transaction status
TransactionStatusRoutesApi getTransactionStatuses POST /transactionStatus Get transaction statuses

Models

Authorization

Endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.4
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

symbol-blockchain-community/symbol-rest-client 适用场景与选型建议

symbol-blockchain-community/symbol-rest-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 243 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「openapi」 「openapitools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 symbol-blockchain-community/symbol-rest-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 symbol-blockchain-community/symbol-rest-client 我们能提供哪些服务?
定制开发 / 二次开发

基于 symbol-blockchain-community/symbol-rest-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-03