当前位置:网站首页>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
边栏推荐
- After the newly assigned variable of the applet is modified, the original variable will also be modified
- GBASE 8s 索引R树
- Basic introduction of gbase 8s blocking technology
- 使用文本分析识别一段文本中的主要性别
- 绝了!自动点赞,我用 PyAutoGUI!
- Simple text analysis of malicious samples - Introduction
- 成功解决:selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from
- Immutable學習之路----告別傳統拷貝
- Region of Halcon: generation of multiple regions (3)
- 坐标系左乘右乘
猜你喜欢

小白一键重装官网下载使用方法

Method of opening data recovery of solid state disk

Why is the TCP handshake just 3 times?

ROS2/DDS/QoS/主题的记录

js的sort()函数

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

Record the problem of C # print size once

CTF_ Web: Advanced questions of attack and defense world expert zone WP (19-21)

Successfully solved: selenium common. exceptions. TimeoutException: Message: timeout: Timed out receiving message from

魔法猪系统重装大师怎么使用
随机推荐
【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
Immutable learning road -- farewell to traditional copy
CTF_ Web: Learn flask template injection (SSTI) from 0
Bingbing's learning notes: implementation of circular queue
Immutable学习之路----告别传统拷贝
成功解决:selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from
Web3 DApp用户体验最佳实践
Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg
Gbase 8s index b+ tree
php封装curl发送get、post请求方法,并使用
Classification of gbase 8s locks
Leader: who can use redis expired monitoring to close orders and get out of here!
GBASE 8s 总体架构
记录小知识点
绝了!自动点赞,我用 PyAutoGUI!
Write shell script error summary
《牛客刷verilog》Part I Verilog快速入门
台式电脑连不上wifi怎么办
GBASE 8s的包
PostgreSQL database Wal - RM_ HEAP_ ID logging action