Aptos Webhook Quickstart
Nodit์ด ์๋กญ๊ฒ ์ง์ํ๋ Aptos Webhook์ ํ์ฉํ์ฌ ๋ชฉ์ ์ ๋ง๋ Webhook์ ์์ฑํ๊ณ ์ค์๊ฐ ์ด๋ฒคํธ๋ฅผ ๊ตฌ๋ ํ๋ ๋ฐฉ๋ฒ์ ์์๋ด ๋๋ค.
Nodit Aptos Webhook Beta Now Launched!
Aptos ์ํ๊ณ๋ฅผ ์ํ Nodit์ ์๋ก์ด ๊ธฐ๋ฅ, Webhook Beta ๋ฒ์ ์ด ๋๋์ด ๊ณต๊ฐ๋์์ต๋๋ค! Beta ๊ธฐ๊ฐ๋์, Aptos Webhook ์ฌ์ฉ๋์ ํ๋ ์ฌ์ฉ๋์ ํฌํจ๋์ง ์์ ๋ฌด์ ํ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค. (๋ค๋ฅธ ๋คํธ์ํฌ๋ค์ ๋ํ Webhook ์ฌ์ฉ๋์ ๊ธฐ์กด๊ณผ ๋์ผํ๊ฒ ์ฐจ๊ฐ๋ฉ๋๋ค.)
์๋ ๊ฐ์ด๋๋ฅผ ๋ฐ๋ผ ๋ชจ๋ํฐ๋ง ํ Event์ Transaction์ ์ ์ํ์ฌ Webhook์ ์์ฑํ๊ณ , ์ค์๊ฐ Notification ๊ธฐ๋ฅ์ App์ ์ฐ๋ํ์ฌ ๋ค์ํ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ๊ณตํด๋ณด์ธ์.
Beta๋ฒ์ ๊ธฐ๊ฐ๋์ Aptos Webhook ์์คํ ๊ฐ์ ์์ ์ผ๋ก ์ธํ ์ผ์์ ๋ฉ์์ง ์ง์ฐ์ด๋ ์๋น์ค ์ค๋จ, ๋๋ ๊ธฐ๋ฅ ๋ณ๊ฒฝ์ด ๋ฐ์ํ ์ ์์ต๋๋ค.
๋คํธ์ํฌ ์ํฉ ๋ฐ ์ค์ ํ ์ด๋ฒคํธ ํ์ ์ ๋ฐ๋ผ ์จ์ฒด์ธ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์๋ ๋ถ๊ตฌํ๊ณ ๋ฉ์์ง ์ ๋ฌ์ด 10๋ถ ์ด์ ์ง์ฐ๋๋ ๊ฒฝ์ฐ๊ฐ ๋ฐ์ํ ์ ์์ผ๋ ์๋น์ค ์ฐ๋์ ์ฐธ๊ณ ๋ถํ๋๋ฆฝ๋๋ค. Message Spec ๋ณ๊ฒฝ์ด๋ ์ ๊ธฐ ์ธํ๋ผ ์ ์ง๋ณด์๋ก ์ธํ ์๋น์ค ์ค๋จ์ด ์์๋๋ ๊ฒฝ์ฐ, ๊ฐ๋ฐ์ ๋ฌธ์์ Notice ํ์ด์ง๋ฅผ ํตํด ๋ฏธ๋ฆฌ ๊ณต์ง ์์ ์ด๋ Notice ํ์ด์ง๋ฅผ ์ง์์ ์ผ๋ก ํ์ธํด์ฃผ์ธ์. Noditํ์ ์ํํ ์ ์ ์๋น์ค ์ถ์๋ฅผ ์ํด ์ต์ ์ ๋คํ๊ฒ ์ต๋๋ค.
Why Aptos Webhook and How Can I Leverage It?
Aptos ๊ฐ๋ฐ์๋ค์ ๊ณ ๋ฏผ, Real-time Event Handling
Aptos ์ํ๊ณ์๋ ์ ๋ Stream, Webhook ๊ด๋ จ ์๋น์ค๊ฐ ๋ถ์กฑํ์ฌ ๊ฐ๋ฐ์๋ค์ด App ๊ฐ๋ฐ์ ์ค์๊ฐ ๋ฐ์ดํฐ๋ฅผ ํ์ฉํ๊ธฐ๊ฐ ์ด๋ ค์ ์ต๋๋ค. ๋ ธ๋๋ฅผ ํตํด ์ง์ ๋ฐ์ดํฐ๋ฅผ ์คํธ๋ฆฌ๋ฐ ๋ฐ๊ธฐ ์ด๋ ค์, ์ฌ๋จ์ด ์ ๊ณตํ๋ gRPC Stream์ ๊ตฌ๋ ํ๋ฉด์ ํ์ํ ์ด๋ฒคํธ๋ง ํํฐ๋งํ๋ ์์คํ ์ ๋ณ๋๋ก ๊ตฌ์ถํด์ผ ํ๊ธฐ ๋๋ฌธ์ ๋๋ค. ์ด๋ฌํ ๊ณ ๋ฏผ์ ํด๊ฒฐํ๊ธฐ ์ํด, Noditํ์์ Aptos Webhook๊ณผ Stream ์๋น์ค๋ฅผ ์์ํฉ๋๋ค.
์ค์๊ฐ ์ด๋ฒคํธ ๊ตฌ๋
์ ์ํ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ, Webhook
Webhook์ ์ง์ ํ ์กฐ๊ฑด์ ๋ง์กฑํ๋ ์ด๋ฒคํธ๋ ํธ๋์ญ์ ์ด ๋ฐ์ํ ๋ ์ค์๊ฐ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ํฌํจํ Notification์ ์ง์ ํ Endpoint๋ก ๋ฐ์๋ณผ ์ ์๋ ๊ธฐ๋ฅ์ ๋๋ค. Webhook์ ํ์ฉํ๋ฉด ๋ค์ํ ์ค์๊ฐ ์ด๋ฒคํธ ๊ธฐ๋ฐ ํ๋ก์ฐ๋ฅผ ๊ตฌํํ ์ ์์ต๋๋ค โค ์ฌ์ฉ์์๊ฒ Push Notification์ ๋ณด๋ด๊ฑฐ๋, ์์ฐ์ ์ด๋์ํค๊ฑฐ๋, ์ฌ์ฉ์ ํต๊ณ ๋ฐ์ดํฐ๋ฅผ ์์ ์๋ ์์ฃ . ์ง์์ ์ผ๋ก ๊ตฌ๋ ์ฑ๋์ ์ ์งํ๊ณ ๋ฐ์ดํฐ๋ฅผ ์ฝ์ผ๋ฉด์ ํํฐ๋งํด์ผ ํ๋ Stream๊ณผ ๋ฌ๋ฆฌ, Webhook์ ๋ณ๋์ ์ฑ๋์ ์ ์งํ ํ์ ์์ด ์ง์ ํ ์กฐ๊ฑด์ ๋ง๋ ๋ฐ์ดํฐ๋ง ๊ตฌ๋ ํ ์ ์์ด ์์คํ ์ ๊ท๋ชจ๋ ํ์ ์ ์๊ด์์ด ์ฝ๊ฒ ์ฐ๋ํ ์ ์์ต๋๋ค.
Nodit Webhook API๋ ์ด๋ป๊ฒ ์ฌ์ฉํ ์ ์๋์?
Nodit์ Webhook์ ์์ฑํ๊ณ ๊ด๋ฆฌํ๊ธฐ ์ํ ๋ค์ API๋ค์ ์ ๊ณตํ๊ณ ์์ต๋๋ค. ์์ธํ API Reference๋ ๊ฐ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ํ์ธํ์ค ์ ์์ต๋๋ค.
- Create Webhook API : Webhook์ ์์ฑํ๊ธฐ ์ํ API์ ๋๋ค. ์ํ๋ EventType ์กฐ๊ฑด์ ์ค์ ํ ์ ์์ผ๋ฉฐ, ์์ฑ๋ Webhook์ ํ ๋น๋๋ Subscription ID๋ฅผ ๋ฐํํฉ๋๋ค.
- Get Webhook List API : ํ์ฌ ์์ฑ๋์ด์๋ Webhook ๋ชฉ๋ก์ ์กฐํํ๊ธฐ ์ํ API์ ๋๋ค.
- Update Webhook API : ์ฌ์ฉ์ค์ธ Webhook์ ์ํ๋ฅผ ๋ณ๊ฒฝํ๊ฑฐ๋ ํํฐ๋ง ์กฐ๊ฑด์ ๋ณ๊ฒฝํ ๋ ์ฌ์ฉํ ์ ์๋ API์ ๋๋ค. Webhook์ ๋นํ์ฑํ ํ๊ฑฐ๋ ์ฌํ์ฑํ ํจ์ผ๋ก์ ๋ฉ์์ง ์์ ์ ์ผ์์ ์ผ๋ก ์ค์ง์ํค๊ฑฐ๋ ์ฌ๊ฐํ ์ ์์ต๋๋ค. ๋ํ ํํฐ๋ง ์กฐ๊ฑด์ ์ ๋ฐ์ดํธํ ์ ์์ต๋๋ค.
- Delete Webhook API : ๊ธฐ์กด์ ์ฌ์ฉ์ค์ธ Webhook์ ์ญ์ ํ๊ธฐ ์ํ API์ ๋๋ค.
- Get Webhook History API : ํน์ Webhook์ ํตํด ์ ๋ฌ๋ ๋ฉ์์ง ์ด๋ ฅ์ ์กฐํํ ์ ์๋ API์
๋๋ค.
- ๋น๋๊ธฐ๋ก ์ ๋ฌ๋๋ Webhook์ ํน์ฑ์, ์ง์ ํ Endpoint๊ฐ ์ผ์์ ์ผ๋ก ์ฌ์ฉ ๋ถ๊ฐ ์ํ๊ฐ ๋๋ ๊ฒฝ์ฐ ๋ฉ์์ง๊ฐ ๋๋ฝ๋ ์ ์์ต๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ History API๋ฅผ ์กฐํํ์ฌ ๋๋ฝ๋ ์ด๋ฒคํธ๊ฐ ์๋์ง ์ฌ๋ถ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
- ๋ชจ๋ Aptos Webhook ๋ฉ์ธ์ง๋
sequenceNumber
ํ๋๋ฅผ ํฌํจํฉ๋๋ค. ๊ฐ Webhook(subscription ID ๊ธฐ์ค)๋ณ๋ก ์ ๋ฌ๋๋ ๋ชจ๋ ๋ฉ์์ง๋sequenceNumber
ํ๋๋ฅผ ํฌํจํ๋ฉฐ, ์ ๋ฌ ์์์ ๋ฐ๋ผ ์์ฐจ์ ์ผ๋ก ์ฆ๊ฐํ๋ ๊ฐ์ ๊ฐ์ง๊ฒ ๋ฉ๋๋ค. Webhook Endpoint ์์คํ ์์๋ ํด๋น ํ๋์ ์์ฐจ ์ฆ๊ฐ๋ฅผ ๊ฒ์ฆํจ์ผ๋ก์จ ์์ ํ์ง ๋ชปํ ๋ฉ์ธ์ง๊ฐ ์๋์ง ์ฌ๋ถ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค. ๋๋ฝ๋ ๊ฐ์ด ์กด์ฌํ๋ ๊ฒฝ์ฐ History API๋ฅผ ํธ์ถํ์ฌ ๋๋ฝ๋ ๋ฉ์ธ์ง๋ฅผ ์กฐํํ์ธ์.
Nodit Console์ ํ์ฉํ Aptos Webhook ์์ฑ ๋ฐ ๊ด๋ฆฌ ๊ธฐ๋ฅ์ ์ ์ ๋ฒ์ ์์ ์ง์๋ ์์ ์ ๋๋ค.
Aptos Webhook์ Beta ์๋น์ค ๊ธฐ๊ฐ ๋์ API๋ฅผ ํตํ ์์ฑ ๋ฐ ๊ด๋ฆฌ ๊ธฐ๋ฅ๋ง์ ์ ๊ณตํฉ๋๋ค. Beta ๊ธฐ๊ฐ ๋์ ์์ง๋๋ ํผ๋๋ฐฑ์ ๋ฐ์ํ์ฌ ๋์ฑ ํธ๋ฆฌํ Aptos Webhook ์ ์ ๋ฒ์ ์ ์ถ์ ์์ ์ด๋ฉฐ, ์ฝ์์ Webhook ๋ฉ๋ด๋ฅผ ํตํ Aptos Webhook ๊ด๋ฆฌ ๊ธฐ๋ฅ์ ์ ์ ๋ฒ์ ์์ ์ฐจํ ์ง์ ์์ ์ด์ค๋ ๋ง์ ํผ๋๋ฐฑ์ ๋ถํ๋๋ฆฝ๋๋ค.
Aptos Webhook - Event Types
Aptos Webhook์ EVENT์ TRANSACTION์ ๋๊ฐ์ง Event Type์ ์ง์ํฉ๋๋ค. ๊ฐ Event Type์ ๋ํ ์์ธํ ๋ด์ฉ์ ๊ฐ ์ ๋ชฉ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ API Reference๋ฅผ ํ์ธํด์ฃผ์ธ์.
1. EVENT - (Click to See API Reference)
์ง์ ํ Event๋ฅผ ํฌํจํ ํธ๋์ญ์ ์ด ๋ฐ์ํ์ ๋ Event์ ๋ํ ์ ๋ณด๋ฅผ Notification์ผ๋ก ๋ฐ์ ์ ์์ต๋๋ค. Aptos Explorer ์ Events ํญ์์ ์๋ ์ด๋ฏธ์ง์ ๊ฐ์ด ํ์ธ๋๋ Account Address์ Type ๊ฐ์ ์ค์ ํ ์ ์์ต๋๋ค.
2. TRANSACTION (Click to See API Reference)
์ง์ ํ ์กฐ๊ฑด์ ๋ง์กฑํ๋ Transaction์ด ๋ฐ์ํ์ ๋ ํธ๋์ญ์ ์ฃผ์ ๋ฐ์ดํฐ๊ฐ Notification์ผ๋ก ์ ๋ฌ๋ฉ๋๋ค. Event ํ์ ๊ณผ ๋์ผํ๊ฒ Event์ Account Address์ Event Type์ ํํฐ๋ง ์กฐ๊ฑด์ผ๋ก ์ฌ์ฉํ ์ ์์ผ๋, ์ ๋ฌ๋ฐ๋ ๋ฐ์ดํฐ๊ฐ ํด๋น ์ด๋ฒคํธ๋ฅผ ํฌํจํ Transaction ๋ฐ์ดํฐ๋ผ๋ ์ ์์ ์ฐจ์ด๊ฐ ์์ต๋๋ค. ์ถ๊ฐ๋ก, ์๋ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด Payload์ ํฌํจ๋ Function ํ๋๋ฅผ ํํฐ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ฐฐํฌํ ๋ชจ๋์์ ํน์ Function์ด ํธ์ถ๋ ๋ ๋ง๋ค Notification์ ๋ฐ๊ณ ์ถ์ ๊ฒฝ์ฐ ์ ์ฉํ๊ฒ ํ์ฉํ ์ ์์ต๋๋ค.
[Use-case 1] Get Event Notification + Module Event Filtering
Webhook ์์ฑํ๊ธฐ
Aptos Explorer์์ ์๋์ ๊ฐ์ด ์กฐํ๋๋ Transaction Event์ ๋ํด, ํด๋น Event๊ฐ ๋ฐ์ํ ๋๋ง๋ค Event Notification์ ๋ฐ์ ์ ์๋ Webhook์ ์์ฑํด๋ณด๊ฒ ์ต๋๋ค.
curl --location 'https://web3.nodit.io/v1/aptos/mainnet/webhooks' \
--header 'X-API-KEY: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"eventType": "EVENT",
"description": "Event Webhook Example",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"condition": {
"eventType": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"eventAccountAddress": "0x0" //Set eventAccountAddress as '0x0' for Module Event
}
}'
์์ฒญ์ด ์ ์์ ์ผ๋ก ์ฒ๋ฆฌ๋ ๊ฒฝ์ฐ, ์๋์ ๊ฐ์ ์๋ต์ ํ์ธํ ์ ์์ต๋๋ค.
{
"subscriptionId": "5116",
"description": "Event Webhook Example",
"protocol": "aptos",
"network": "mainnet",
"eventType": "EVENT",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"signingKey": "{MESSAGE_SIGNING_KEY}", //signingKey field is returned only once in creation time.
"condition": {
"eventType": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"eventAccountAddress": "0x0"
},
"createdAt": "2025-01-08T01:33:24.344Z"
}
Webhook Event ๋ฉ์์ง ์์
์ ์ํ Event ๋ฐ์์, ์๋์ ๊ฐ์ EVENT Webhook ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค.
{
"subscriptionId": "5116",
"sequenceNumber": "5",
"description": "Event Webhook Example",
"protocol": "APTOS",
"network": "MAINNET",
"subscriptionType": "WEBHOOK",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"signingKey": "{MESSAGE_SIGNING_KEY}",
"eventType": "EVENT",
"event": {
"eventType": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"eventAccountAddress": "0x0",
"payloadFunction": null,
"messages": [
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"data": {
"fee_type": "2",
"player_addr": "0xff805a23fff95f10712afe3153088138918de280479b3cbe50893b6d855b4716",
"roll_result": {
"pool_id": "1805",
"reward_results": [
{
"amount": "187500000",
"rand": "1",
"reward_type": {
"coin_name": {
"vec": []
},
"name": "EGON",
"type_id": "1"
}
}
],
"season_id": "8"
},
"ts": "1736299947"
},
"event_index": 3,
"version": "2169419008"
}
]
},
"createdAt": "2025-01-08T01:41:47.994681028Z"
}
[Use-case 2] Get Transaction Notification + Module Event Filtering
Webhook ์์ฑํ๊ธฐ
์์ Use-case 1๊ณผ ๋์ผํ Event ํํฐ๋ง์ ์ฌ์ฉํ์ฌ, Transaction ํ์
์ Webhook์ ์์ฑํด๋ณด๊ฒ ์ต๋๋ค. eventType
์ TRANSACTION
์ผ๋ก ์ค์ ํฉ๋๋ค. Module Event์ ํน์ฑ์ ๋ฐ๋ผ eventAccountAddress
๊ฐ์ ํญ์ 0x0์ผ๋ก ์ค์ ํ ์ ์์ต๋๋ค.
curl --location 'https://web3.nodit.io/v1/aptos/mainnet/webhooks' \
--header 'X-API-KEY: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"eventType": "TRANSACTION",
"description": "Event Webhook Example",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"condition": {
"eventType": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"eventAccountAddress": "0x0"
}
}'
Webhook Event ๋ฉ์์ง ์์
์ ์ํ Event ๋ฐ์์, ์๋์ ๊ฐ์ TRANSACTION Webhook ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค.
{
"subscriptionId": "5118",
"sequenceNumber": "10",
"description": "Event Webhook Example",
"protocol": "APTOS",
"network": "MAINNET",
"subscriptionType": "WEBHOOK",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"signingKey": "{MESSAGE_SIGNING_KEY}",
"eventType": "EVENT",
"event": {
"eventType": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"eventAccountAddress": "0x0",
"payloadFunction": null,
"messages": [
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"data": {
"fee_type": "2",
"player_addr": "0xff805a23fff95f10712afe3153088138918de280479b3cbe50893b6d855b4716",
"roll_result": {
"pool_id": "1802",
"reward_results": [
{
"amount": "250000000",
"rand": "0",
"reward_type": {
"coin_name": {
"vec": []
},
"name": "EGON",
"type_id": "1"
}
}
],
"season_id": "4"
},
"ts": "1736300016"
},
"event_index": 3,
"version": "2169423135"
}
]
},
"createdAt": "2025-01-08T01:41:53.302093184Z"
}
[Use-case 3] Get Transaction Notification + Function Filtering
Webhook ์์ฑํ๊ธฐ
Aptos Explorer์์ ์๋์ ๊ฐ์ด ์กฐํ๋๋ Transaction์ ๋ํด, ํด๋น Function์ ์คํํ๋ Transaction์ด ๋ฐ์ํ ๋๋ง๋ค Transaction Notification์ ๋ฐ์ ์ ์๋ Webhook์ ์์ฑํด๋ณด๊ฒ ์ต๋๋ค. condition
์์ญ์ payloadFunction
์ ์ฌ์ฉํ ์กฐ๊ฑด์ ์ค์ ํฉ๋๋ค.
curl --location 'https://web3.nodit.io/v1/aptos/mainnet/webhooks' \
--header 'X-API-KEY: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"eventType": "TRANSACTION",
"description": "Transaction Monitoring Example",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"condition": {
"payloadFunction":"0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::roll_premium"
}
}'
Webhook Event ๋ฉ์์ง ์์
์ ์ํ Transaction ๋ฐ์์, ์๋์ ๊ฐ์ TRANSACTION Webhook ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค.
{
"subscriptionId": "5118",
"sequenceNumber": "1",
"description": "Transaction Monitoring Example",
"protocol": "APTOS",
"network": "MAINNET",
"subscriptionType": "WEBHOOK",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"signingKey": "{MESSAGE_SIGNING_KEY}",
"eventType": "TRANSACTION",
"event": {
"eventType": null,
"eventAccountAddress": null,
"payloadFunction": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::roll_premium",
"messages": [
{
"version": "2169481647",
"hash": "0xa4800cb8dc47dd17dc0109978b6a3535fa81c4b7108ed7378f84d7303c86ec65",
"state_change_hash": "0xc92c3b36a2f8c71adf03548f6337523bbf778ebe4c327727500d6103abffb45f",
"event_root_hash": "0x81baf5f07f652226e71fe1db9626514c40c4cf09d169418fe343ebe35a3bd450",
"state_checkpoint_hash": null,
"gas_used": "100",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "0xb24d09e8a7bcf5d3aa5190a9244d52f7e825f2c2817df71346fcf1ae2d18891f",
"timestamp": "1736300997734354",
"type": "user_transaction",
"events": [
{
"guid": {
"creation_number": "3",
"account_address": "0x51d80258f923cb3e9ac7246f73d54f4855aa973300d57d4b4423b7ba4545494f"
},
"sequence_number": "4",
"type": "0x1::coin::WithdrawEvent",
"data": {
"amount": "20000"
}
},
{
"guid": {
"creation_number": "2",
"account_address": "0xda1cf5a5dacb3e8902be6ba8a17366edee2bb0316239e39c82bb9cfefa407bdd"
},
"sequence_number": "789050",
"type": "0x1::coin::DepositEvent",
"data": {
"amount": "20000"
}
},
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x1::randomness::RandomnessGeneratedEvent",
"data": {
"dummy_field": false
}
},
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::EragonLuckyWheelEvent",
"data": {
"fee_type": "2",
"player_addr": "0x51d80258f923cb3e9ac7246f73d54f4855aa973300d57d4b4423b7ba4545494f",
"roll_result": {
"pool_id": "1800",
"reward_results": [
{
"amount": "15625000",
"rand": "0",
"reward_type": {
"coin_name": {
"vec": []
},
"name": "EGON",
"type_id": "1"
}
}
],
"season_id": "2"
},
"ts": "1736300994"
}
},
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "55",
"io_gas_units": "18",
"storage_fee_octas": "2840",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "100"
}
}
],
"sender": "0x51d80258f923cb3e9ac7246f73d54f4855aa973300d57d4b4423b7ba4545494f",
"sequence_number": "82",
"max_gas_amount": "8000",
"gas_unit_price": "100",
"expiration_timestamp_secs": "1736301025",
"payload": {
"type": "entry_function_payload",
"function": "0x6d138096fb880d1c16b48f10686b98a96000c0ac18501425378f784c6b81c34d::eragon_lucky_wheel::roll_premium",
"type_arguments": [],
"arguments": [
"2",
"1800",
"1736294400",
"1736300994",
0,
"0xe64b1cd1b716e7712a8f72b328d35b0e315a2b2b6a97e4b83976f41722ff1a110e1c38ccc85efb088e84656a1a1698a64f65cf8bafda7bbcce9bb53fdf42c555"
]
},
"signature": {
"public_key": "0x1b68747470733a2f2f6163636f756e74732e676f6f676c652e636f6d2094e0fc7cc768ec27131cc5aff5761661f9319724682f4d67de2fc40804fdc00d",
"signature": "0x00000c093c9f86290b057b8879cbde3115f7128937dd4b7d61daf5ec677322c8060c03707a56557ccc4585df61a9223e2cbf906054f7a77046448b436a3c2abb932b80b3ed46ea422b5074496741daf8f90fcc40af218bdd105c3ae6393cfb83e6af9c6ce2d501dfaabf32e0feb381ef6d4c122ddfb7c1652dce093d42fccd793f9e80969800000000000000010040069e136e81568113840f8964098399359af6250b8b5ca3fe85252fc70741742fefee5eebd2ff68cdd577c9ead8c999680368e7a22d512d0f6b6df7c8c0a0240c4c7b22616c67223a225253323536222c226b6964223a2238396365333539386334373361663162646134626666393565366338373336343530323036666261222c22747970223a224a5754227d1043906700000000002005349470e9e605ccb999c8ce168cb88534d0a504b1209b8df1efabfb3cbe738c00404879c3f371d42303a7e7e9666bb1245a3867bc035ff8e362b560bd35faf27b55fc6976279fa7695c6d34a6b413e8a4144919c8da6fb5ec412b0cb6ddce512203",
"type": "single_sender_keyless_signature"
}
}
]
},
"createdAt": "2025-01-08T01:57:29.036855468Z"
}
[Use-case 4] Get Event Notification + Event-Handle Event Filtering
Webhook ์์ฑํ๊ธฐ
Aptos Webhook์์ ์ฌ์ฉ๊ฐ๋ฅํ Event ํํฐ๋ง์ Module Event๋ฟ๋ง ์๋๋ผ Deprecated ๋ Aptos Event-Handle Event์๋ ๋์ผํ๊ฒ ์ฌ์ฉํ ์ ์์ต๋๋ค. Module-Event ์ด์ ์ ๊ฐ๋ฐ๋ App์ ๊ฒฝ์ฐ Event-Handle Event์ ์ ์ ํ ํ์์ ํํฐ๋ง ์ต์
์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๊ฐ์ฅ ํฐ ์ฐจ์ด์ ์, eventAccountAddress
ํ๋๊ฐ 0x0๊ฐ ์๋ ์ค์ ์ฃผ์๊ฐ์ผ๋ก ์ค์ ๋๋ค๋ ์ ์
๋๋ค. ์์๋ก, Explorer์์ ์๋์ ๊ฐ์ด ์กฐํ๋๋ ํธ๋์ญ์
์ Event๋ฅผ ํํฐ๋งํ๊ธฐ ์ํ Webhook์ ์์ฑํด๋ณด๊ฒ ์ต๋๋ค.
curl --location 'https://web3.nodit.io/v1/aptos/mainnet/webhooks' \
--header 'X-API-KEY: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"eventType": "EVENT",
"description": "Pyth Event Monitoring",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"condition": {
"eventType":"0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"eventAccountAddress": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
}
}'
Webhook Event ๋ฉ์์ง ์์
์ค์ ํ Event ๋ฐ์์, ์๋์ ๊ฐ์ ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค.
{
"subscriptionId": "5119",
"sequenceNumber": "75",
"description": "Pyth Event Monitoring",
"protocol": "APTOS",
"network": "MAINNET",
"subscriptionType": "WEBHOOK",
"notification": {
"webhookUrl": "{YOUR_WEBHOOK_ENDPOINT}"
},
"signingKey": "{MESSAGE_SIGNING_KEY}",
"eventType": "EVENT",
"event": {
"eventType": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"eventAccountAddress": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387",
"payloadFunction": null,
"messages": [
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468836",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "234838",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99971586",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "195547",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99971886",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x9a2a116d85a31d6f1bed19771105557276457094e31791a892758148aa54023d"
}
},
"timestamp": "1736301596189355"
},
"event_index": 0,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468837",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "3352335500",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "350752580000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "2902657137",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "350291158371",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x4dcc2fb96fb89a802ef9712f6bd2246d3607cf95ca5540cb24490d37003f8c46"
}
},
"timestamp": "1736301596189355"
},
"event_index": 1,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468838",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "180362",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99942946",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "304341",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99939341",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xa6a0dfa49b6b3a93510658245618099f5e842514970f596cf64fad9e0d658193"
}
},
"timestamp": "1736301596189355"
},
"event_index": 2,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468839",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "15895071200",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "357641870000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "15055248528",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "356845435582",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x9ee4e7c60b940440a261eb54b6d8149c23b580ed7da3139f7f08f4ea29dad395"
}
},
"timestamp": "1736301596189355"
},
"event_index": 3,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468840",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "1346457000",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "350258670000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "1746848039",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "349583919730",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x06c217a791f5c4f988b36629af4cb88fad827b2485400a358f3b02886b54de92"
}
},
"timestamp": "1736301596189355"
},
"event_index": 4,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468841",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "6127373",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "956626530",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "6691499",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "946516066",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xb29276972267db5d64ae718fb7f107ad9e72a79cabf9992f0e9bc75ad451a7f6"
}
},
"timestamp": "1736301596189355"
},
"event_index": 5,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468842",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "1014955470",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "339437600000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "1104490110",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "338804385920",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x9d4294bbcd1174d6f2003ec365831e64cc31d9f6f15a2b85399db8d5000960f6"
}
},
"timestamp": "1736301596189355"
},
"event_index": 6,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468843",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "204016",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "107334051",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "157431",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "107313761",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326"
}
},
"timestamp": "1736301596189355"
},
"event_index": 7,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468844",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "153836",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "39214667",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "130837",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "39039382",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x74e3fbb0d33e0ed8c0078b56134dcebdae38852f0858a8ea4de4c5ea7474bd42"
}
},
"timestamp": "1736301596189355"
},
"event_index": 8,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468845",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "10362685400",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "9680309200000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "10501211278",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "9675466206597",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33"
}
},
"timestamp": "1736301596189355"
},
"event_index": 9,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468846",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "46260381",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "70121339000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "47452530",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "69981697027",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x2f95862b045670cd22bee3114c39763a4a08beeb663b145d283c31d7d1101c4f"
}
},
"timestamp": "1736301596189355"
},
"event_index": 10,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468847",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "44693",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "36001855",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "39789",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "35635472",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef"
}
},
"timestamp": "1736301596189355"
},
"event_index": 11,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468848",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "297104",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "481114450",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "271123",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "477899855",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744"
}
},
"timestamp": "1736301596189355"
},
"event_index": 12,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468849",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "324560",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "251324548",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "301939",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "249981828",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x2356af9529a1064d41e32d617e2ce1dca5733afa901daba9e2b68dee5d53ecf9"
}
},
"timestamp": "1736301596189355"
},
"event_index": 13,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468850",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "100433",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99979020",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "87934",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99974580",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b"
}
},
"timestamp": "1736301596189355"
},
"event_index": 14,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468851",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "61199",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99999499",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "56108",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "99999200",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
}
},
"timestamp": "1736301596189355"
},
"event_index": 15,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468852",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "16159704",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "20152610000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "14913673",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "20124366687",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
}
},
"timestamp": "1736301596189355"
},
"event_index": 16,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468853",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "172690023",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "339442400000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "178628430",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "339085582666",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
}
},
"timestamp": "1736301596189355"
},
"event_index": 17,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468854",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "4611122100",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "9692660800000",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "4578141305",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "9689752951397",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
}
},
"timestamp": "1736301596189355"
},
"event_index": 18,
"version": "2169519450"
},
{
"guid": {
"creation_number": "2",
"account_address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
},
"sequence_number": "518468855",
"type": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387::event::PriceFeedUpdate",
"data": {
"price_feed": {
"ema_price": {
"conf": "1177942",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "957660260",
"negative": false
},
"timestamp": "1736301594"
},
"price": {
"conf": "1030021",
"expo": {
"magnitude": "8",
"negative": true
},
"price": {
"magnitude": "948805100",
"negative": false
},
"timestamp": "1736301594"
},
"price_identifier": {
"bytes": "0x03ae4db29ed4ae33d323568895aa00337e658e348b37509f5372ae51f0af00d5"
}
},
"timestamp": "1736301596189355"
},
"event_index": 19,
"version": "2169519450"
}
]
},
"createdAt": "2025-01-08T02:05:39.068952231Z"
}
Aptos Webhook ์ฌ์ฉ์ ์ด๋ ค์์ด ์์ผ์ ๊ฐ์?
์ด ํ์ด์ง์ ๊ฐ์ด๋๋ฅผ ํตํด Aptos Webhook์ ์ฌ์ฉํ๋๋ฐ ์ด๋ ค์์ด ์์ผ์๋ค๋ฉด, ์๋จ ๋ฉ๋ด์ Q&A ์ฑ๋์ ํตํด ๋ฌธ์๋ฅผ ๋จ๊ฒจ์ฃผ์ธ์. Aptos Webhook์ ๋ํ ํผ๋๋ฐฑ๋ ์ธ์ ๋ ํ์ํฉ๋๋ค!
- Contact Point: [email protected]
Updated 10 days ago