跳转到主要内容
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..."