List IP Transactions
curl --request POST \
--url https://api.storyapis.com/api/v4/transactions \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockGte": 1,
"blockLte": 1,
"eventTypes": [
"<string>"
],
"initiators": [
"<string>"
],
"ipIds": [
"<string>"
],
"txHashes": [
"<string>"
]
}
}
'import requests
url = "https://api.storyapis.com/api/v4/transactions"
payload = {
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockGte": 1,
"blockLte": 1,
"eventTypes": ["<string>"],
"initiators": ["<string>"],
"ipIds": ["<string>"],
"txHashes": ["<string>"]
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderBy: 'blockNumber',
orderDirection: 'desc',
pagination: {limit: 20, offset: 0},
where: {
blockGte: 1,
blockLte: 1,
eventTypes: ['<string>'],
initiators: ['<string>'],
ipIds: ['<string>'],
txHashes: ['<string>']
}
})
};
fetch('https://api.storyapis.com/api/v4/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.storyapis.com/api/v4/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderBy' => 'blockNumber',
'orderDirection' => 'desc',
'pagination' => [
'limit' => 20,
'offset' => 0
],
'where' => [
'blockGte' => 1,
'blockLte' => 1,
'eventTypes' => [
'<string>'
],
'initiators' => [
'<string>'
],
'ipIds' => [
'<string>'
],
'txHashes' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.storyapis.com/api/v4/transactions"
payload := strings.NewReader("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.storyapis.com/api/v4/transactions")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.storyapis.com/api/v4/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"blockNumber": 123,
"createdAt": "2023-11-07T05:31:56Z",
"eventType": "<string>",
"id": 123,
"initiator": "<string>",
"ipId": "<string>",
"logIndex": 123,
"txHash": "<string>"
}
],
"$schema": "<string>",
"pagination": {
"hasMore": true,
"limit": 123,
"offset": 123,
"total": 123
}
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Endpoints
IP 트랜잭션 목록 조회
페이지네이션 및 필터링 옵션과 함께 IP 트랜잭션 목록을 조회합니다. ‘where’ 필드는 선택 사항이며, 특정 트랜잭션 해시, 이벤트 유형 또는 블록 범위로 필터링할 때만 제공해야 합니다. 이 엔드포인트는 txHashes 필터에 해시를 전달하여 특정 트랜잭션을 가져오는 데에도 사용할 수 있습니다.
POST
/
transactions
List IP Transactions
curl --request POST \
--url https://api.storyapis.com/api/v4/transactions \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockGte": 1,
"blockLte": 1,
"eventTypes": [
"<string>"
],
"initiators": [
"<string>"
],
"ipIds": [
"<string>"
],
"txHashes": [
"<string>"
]
}
}
'import requests
url = "https://api.storyapis.com/api/v4/transactions"
payload = {
"orderBy": "blockNumber",
"orderDirection": "desc",
"pagination": {
"limit": 20,
"offset": 0
},
"where": {
"blockGte": 1,
"blockLte": 1,
"eventTypes": ["<string>"],
"initiators": ["<string>"],
"ipIds": ["<string>"],
"txHashes": ["<string>"]
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderBy: 'blockNumber',
orderDirection: 'desc',
pagination: {limit: 20, offset: 0},
where: {
blockGte: 1,
blockLte: 1,
eventTypes: ['<string>'],
initiators: ['<string>'],
ipIds: ['<string>'],
txHashes: ['<string>']
}
})
};
fetch('https://api.storyapis.com/api/v4/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.storyapis.com/api/v4/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderBy' => 'blockNumber',
'orderDirection' => 'desc',
'pagination' => [
'limit' => 20,
'offset' => 0
],
'where' => [
'blockGte' => 1,
'blockLte' => 1,
'eventTypes' => [
'<string>'
],
'initiators' => [
'<string>'
],
'ipIds' => [
'<string>'
],
'txHashes' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.storyapis.com/api/v4/transactions"
payload := strings.NewReader("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.storyapis.com/api/v4/transactions")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.storyapis.com/api/v4/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderBy\": \"blockNumber\",\n \"orderDirection\": \"desc\",\n \"pagination\": {\n \"limit\": 20,\n \"offset\": 0\n },\n \"where\": {\n \"blockGte\": 1,\n \"blockLte\": 1,\n \"eventTypes\": [\n \"<string>\"\n ],\n \"initiators\": [\n \"<string>\"\n ],\n \"ipIds\": [\n \"<string>\"\n ],\n \"txHashes\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"blockNumber": 123,
"createdAt": "2023-11-07T05:31:56Z",
"eventType": "<string>",
"id": 123,
"initiator": "<string>",
"ipId": "<string>",
"logIndex": 123,
"txHash": "<string>"
}
],
"$schema": "<string>",
"pagination": {
"hasMore": true,
"limit": 123,
"offset": 123,
"total": 123
}
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}이 엔드포인트는 이벤트 유형을 기준으로 필터링할 수 있습니다.
where.eventTypes[] 필드에 사용할 수 있는 문자열 값은 다음과 같습니다:- “IPRegistered”: IP asset이 등록될 때
- “LicenseTermsAttached”: IP asset에 라이선스 조건이 첨부될 때
- “DerivativeRegistered”: 파생 IP asset이 등록될 때
- “DisputeRaised”: IP asset에 대한 분쟁이 제기될 때
- “DisputeResolved”: 분쟁이 해결될 때
- “DisputeCancelled”: 분쟁이 취소될 때
- “DisputeJudgementSet”: 분쟁에 대한 판결이 설정될 때
- “RoyaltyPaid”: 로열티 지급이 이루어질 때
인증
본문
application/json
Field to order results by
사용 가능한 옵션:
blockNumber, createdAt, eventType, txHash, ipId, initiator Order direction for results
사용 가능한 옵션:
asc, desc Pagination configuration
Show child attributes
Show child attributes
Optional filter options for transactions
Show child attributes
Show child attributes
⌘I