treasurer/internal/models/alchemy/webhook.go

40 lines
1.4 KiB
Go

package alchemy
type AlchemyAddressActivityWebhook struct {
CreatedAt string `json:"createdAt"`
Event struct {
Activity []struct {
Asset string `json:"asset"`
BlockNum string `json:"blockNum"`
Category string `json:"category"`
//Erc1155Metadata interface{} `json:"erc1155Metadata"`
//Erc721TokenId interface{} `json:"erc721TokenId"`
FromAddress string `json:"fromAddress"`
Hash string `json:"hash"`
Log struct {
Address string `json:"address"`
BlockHash string `json:"blockHash"`
BlockNumber string `json:"blockNumber"`
Data string `json:"data"`
LogIndex string `json:"logIndex"`
Removed bool `json:"removed"`
Topics []string `json:"topics"`
TransactionHash string `json:"transactionHash"`
TransactionIndex string `json:"transactionIndex"`
} `json:"log"`
RawContract struct {
Address string `json:"address"`
Decimals int `json:"decimals"`
RawValue string `json:"rawValue"`
} `json:"rawContract"`
ToAddress string `json:"toAddress"`
//TypeTraceAddress interface{} `json:"typeTraceAddress"`
Value float64 `json:"value"`
} `json:"activity"`
Network string `json:"network"`
} `json:"event"`
ID string `json:"id"`
Type string `json:"type"`
WebhookId string `json:"webhookId"`
}