当前位置:网站首页>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
边栏推荐
- [esp32 learning path 6 - Flash encryption]
- PostgreSQL database Wal - RM_ HEAP_ ID logging action
- Construction scheme of distributed websocket
- GBASE 8s的并行操作问题场景描述
- olap分析引擎——Kylin4.0
- LabVIEW development gas regulator
- 为什么SQL语句命中索引比不命中索引要快?
- 【Flink】RocksDB增量模式checkpoint大小持续增长的问题及解决
- At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
- Why PHP is not safe
猜你喜欢

哪个编程语言实现hello world最烦琐?

Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
![[untitled]](/img/68/5e711f7c473dcea54a56f7b7e48604.png)
[untitled]

olap分析引擎——Kylin4.0

CTF_ Web: Learn flask template injection (SSTI) from 0

What if the desktop computer is not connected to WiFi
Triangle class (construction and deconstruction)

在 .NET 6 中使用 dotnet format 格式化代码

Records of ros2/dds/qos/ topics

冰冰学习笔记:循环队列的实现
随机推荐
XML (VIII)
Codeforces Round #802 (Div. 2) C D
js的call()和apply()
Xiaobai learns MySQL - Statistical 'opportunism'
Deep learning - several types of learning
CTF_ Web: Learn flask template injection (SSTI) from 0
DMA double buffer mode of stm32
Triangle class (construction and deconstruction)
How to apply for software
为什么TCP握手刚刚好是3次呢?
台式电脑连不上wifi怎么办
Gbase 8s overall architecture
计算学生成绩等级(虚函数和多态)
Part I Verilog quick start
LabVIEW development gas regulator
File upload vulnerability shooting range upload labs learning (pass1-pass5)
基于Cortex-M3、M4的精准延时(系统定时器SysTick延时,可用于STM32、ADuCM4050等)
MySQL concept and operation (III)
Multithreading structure of gbase 8s
Gbase 8s stored procedure execution and deletion