当前位置:网站首页>Opensea PHP development kit
Opensea PHP development kit
2022-06-25 04:46:00 【Brain in new VAT】
OpenSea PHP Development package is the largest in the world NFT Market OpenSea Of official API Object oriented PHP encapsulation .
Learn in a familiar language Web3 DApp Development :Java | Php | Python | .Net / C# | Golang | Node.JS | Flutter / Dart
1、 install OpenSea PHP
OpenSea PHP The pre installation requirements of the development package are as follows :
- PHP >= 7.4
- PSR-17 Realization
- PSR-18 Realization
Use Composer install :
composer require owenvoke/opensea guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0
2、 Quick start OpenSea PHP
Inquire about NFT assets :
// Include the Composer autoloader
require_once __DIR__ . '/vendor/autoload.php';
use OwenVoke\OpenSea\Client;
$client = new Client();
$assets = $client->assets()->all();
API Token validation :
use OwenVoke\OpenSea\Client;
$client = new Client();
$client->authenticate($apiToken, null, Client::AUTH_ACCESS_TOKEN);
3、 assets API
assets API Provides access to OpenSea assets API Of PHP encapsulation .
Query asset list :
// Retrieve a standard list of assets with the default parameters
$response = $client->assets()->all();
// Retrieve a custom list of assets using parameters
$response = $client->assets()->all([
'owner' => 'owners_address_here',
]);
Query the specified assets :
$response = $client->assets()->show($address, $tokenId);
4、 Asset package API
Asset package API Provides access to OpenSea Asset package API Of PHP encapsulation .
Query the asset package list :
// Retrieve a standard list of bundles with the default parameters
$response = $client->bundles()->all();
// Retrieve a custom list of bundles using parameters
$response = $client->bundles()->all([
'owner' => 'owners_address_here',
]);
5、 Collection API
Collection API Provides access to OpenSea Collection API Of PHP encapsulation .
Query collection list :
// Retrieve a standard list of collections with the default parameters
$response = $client->collections()->all();
// Retrieve a custom list of collections using parameters
$response = $client->collections()->all([
'asset_owner' => 'owners_address_here',
]);
6、 contract API
contract API Provides access to OpenSea contract API Of PHP encapsulation .
Query the specified contract :
$response = $client->contracts()->show($contractAddress);
7、 event API
event API Provides access to OpenSea event API Of PHP encapsulation .
Query the event list :
// Retrieve a standard list of events with the default parameters
$response = $client->events()->all();
// Retrieve a custom list of events using parameters
$response = $client->events()->all([
'account_address' => 'accounts_wallet_address_here',
]);
Link to the original text : OpenSea PHP Development kit — Huizhi. Com
边栏推荐
- 在 .NET 6 中使用 dotnet format 格式化代码
- jsz中的join()
- 2.0springmvc uses restful
- Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
- Méthode de récupération des données d'ouverture du disque dur à l'état solide
- 以太网是什么要怎么连接电脑
- "Daily practice, happy water" 1108 IP address invalidation
- 重磅直播 | 相移法+多频外差之数学原理推导+实现
- 电脑的dwg文件怎么打开
- Data view for gbase 8s
猜你喜欢

本轮压力测试下,DeFi协议们表现如何?

第九章 APP项目测试(2) 测试工具

Join() in JSZ

My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced

Record the problem of C # print size once

Bingbing's learning notes: implementation of circular queue

php开发支付宝支付功能之扫码支付流程图

固態硬盤開盤數據恢複的方法

Part I Verilog quick start

Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
随机推荐
Trigger for gbase 8s
Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)
Data view for gbase 8s
Basic introduction of gbase 8s blocking technology
执行SQL响应比较慢,你有哪些排查思路?
Successfully solved: selenium common. exceptions. TimeoutException: Message: timeout: Timed out receiving message from
515. find the maximum value / Sword finger offer II 095 in each tree row Longest common subsequence
Efficient NoSQL database service Amazon dynamodb experience sharing
How to apply for software
【Flink】RocksDB增量模式checkpoint大小持续增长的问题及解决
基于Cortex-M3、M4的精准延时(系统定时器SysTick延时,可用于STM32、ADuCM4050等)
js的sort()函数
GBASE 8s存储过程流程控制
2.0springmvc uses restful
Méthode de récupération des données d'ouverture du disque dur à l'état solide
Region of Halcon: generation of multiple regions (3)
为什么TCP握手刚刚好是3次呢?
Record small knowledge points
Gbase 8s stored procedure syntax structure
深度学习——几种学习类型