Skip to main content
POST
紅包 - 建立

授權

Authorization
string
header
必填

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

路徑參數

chain
enum<string>
必填

支援網路列表中的鏈名稱 Supported blockchain chains

可用選項:
sol,
eth,
bsc

主體

application/json

建立者錢包地址

creator
string
必填

建立者錢包地址

範例:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

maxClaims
integer<int32>
必填

最大領取次數

範例:

10

mint
string
必填

代幣鑄造地址

範例:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

claimAuthority
string | null

領取授權地址

範例:

"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"

expiration
integer<int64> | null

過期時間(秒)

範例:

24

fixedAmount
string | null

每次領取的固定金額

範例:

"1000000000"

memo
string | null

紅包留言

範例:

"Happy Red Packet"

password
string | null

紅包領取密碼

範例:

"123456"

totalAmount
string | null

紅包總金額

範例:

"1000000000"

回應

200 - application/json

成功回應

Create red packet response

shareId
string
必填

分享標識

範例:

"abc123"

txSerialize
string
必填

序列化交易資料

範例:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRg..."