GET
/
v1
/
redpacket
/
{id}
RedPacket - Get
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

Redpacket id

Example:

"redpacket123"

Response

200 - application/json
chain
enum<string>
required

A chain name listed in supported networks

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

"sol"

id
string
required

Redpacket id

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

shareId
string
required

redpacket share id

Example:

"123456"

txHash
string
required

Transaction hash

Example:

"123456"

creator
string
required

Creator wallet address of the red packet

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

mint
string
required

Token mint address for the red packet

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

totalAmount
string
required

Total amount of tokens to be distributed

Example:

"1000000000"

memo
string
required

Optional memo message for the red packet

Example:

"Happy Red Packet"

maxClaims
number
required

Maximum number of recipients

Example:

100

claimAuthority
string
required

Optional authority address that can claim the red packet

Example:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

expired
boolean
required

Whether it is completed or not

Example:

true

expiration
number
required

redpacket expiration

Example:

24

createdAt
number
required

Creation time

Example:

1717334400

expiredAt
number
required

Expiry date

Example:

1717334400

claimedCount
number
required

claimed count

Example:

1717334400

claimedAmount
string
required

claimed amount

Example:

1717334400

refundedAmount
string
required

refunded amount

Example:

"123456"