Skip to main content

Create Reward Code

POST 

/rewards/code

Creates a new reward code with Solana signature verification

Request

Body

required

    signature stringrequired

    Base64-encoded Solana Ed25519 signature of the string "code"

    mint stringrequired

    The coin mint address

    amount integerrequired

    Possible values: >= 1

    The reward amount (must be greater than 0)

Responses

Created - Reward code successfully created

Schema

    code stringrequired

    The generated 6-character alphanumeric reward code

    mint stringrequired

    The coin mint address

    reward_address stringrequired

    The reward address (authorized public key)

    amount integerrequired

    The reward amount

Loading...