GET
/
v1
/
redpacket
/
{id}
红包 - 查询
curl --request GET \
  --url https://api-dex.chainstream.io/v1/redpacket/{id} \
  --header 'Authorization: Bearer <token>'
{
  "chain": "sol",
  "id": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "shareId": "123456",
  "txHash": "123456",
  "creator": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "totalAmount": "1000000000",
  "memo": "Happy Red Packet",
  "maxClaims": 100,
  "claimAuthority": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "expired": true,
  "expiration": 24,
  "createdAt": 1717334400,
  "expiredAt": 1717334400,
  "claimedCount": 1717334400,
  "claimedAmount": 1717334400,
  "refundedAmount": "123456"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

红包ID

Example:

"redpacket123"

Response

200 - application/json
chain
enum<string>
required

支持网络中列出的区块链名称

Available options:
sol,
base,
bsc,
polygon,
arbitrum,
optimism,
avalanche,
ethereum,
zksync,
sui
Example:

"sol"

id
string
required

红包ID

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

shareId
string
required

红包分享ID

Example:

"123456"

txHash
string
required

交易hash

Example:

"123456"

creator
string
required

红包创建者的钱包地址

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

mint
string
required

红包代币的铸造地址

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

totalAmount
string
required

要分发的代币总量

Example:

"1000000000"

memo
string
required

红包的可选备注信息

Example:

"Happy Red Packet"

maxClaims
number
required

最大领取人数

Example:

100

claimAuthority
string
required

可以领取红包的可选授权地址

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

expired
boolean
required

是否已完成

Example:

true

expiration
number
required

红包的过期时长

Example:

24

createdAt
number
required

创建时间

Example:

1717334400

expiredAt
number
required

过期时间

Example:

1717334400

claimedCount
number
required

已领取数量

Example:

1717334400

claimedAmount
string
required

已领取金额

Example:

1717334400

refundedAmount
string
required

回退金额

Example:

"123456"