Prepares unsigned transactions for the newSto method.
Example:
curl --request POST \
--url https://api.sandbox.brickken.com/prepare-transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '{
"method": "newSto",
"signerAddress": "0xYourAddress",
"chainId": "aa36a7",
"tokenSymbol": "EXMPL",
"price": "1000000000000000000",
"tokensForSale": "1000"
}'
/prepare-transactions with method=newSto.
| Parameter | Type | Required | Description |
|---|---|---|---|
signerAddress | string | Yes | Address that will sign the transaction |
chainId | string | Yes | Blockchain network identifier (hex format) |
method | string | Yes | Transaction method type (should be “newSto”) |
tokenSymbol | string | Yes | Symbol of the token for the STO |
acceptedCoin | string | Yes | Accepted payment coin (e.g., USDT, USDC, or NATIVE) |
tokenAmount | string | Yes | Total number of tokens offered in the STO |
offeringName | string | Yes | Name of the STO offering |
minRaiseUSD | string | No | Minimum raise amount in USD |
maxRaiseUSD | string | No | Maximum raise amount in USD |
minInvestment | string | Yes | Minimum investment amount in payment token units |
maxInvestment | string | Yes | Maximum investment amount in payment token units |
startDate | string | Yes | STO start date (ISO format) |
endDate | string | Yes | STO end date (ISO format) |
tokenizerEmail | string | Yes | Email of the tokenizer |
Request body for newSto method.