newInvest
Create Transaction
newInvest
Prepares unsigned transactions for the newInvest method.
Example:
curl --request POST \
--url https://api.sandbox.brickken.com/prepare-transactions/newInvest \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '{
"method": "newInvest",
"signerAddress": "0xYourAddress",
"chainId": "aa36a7",
"investorAddress": "0xInvestorAddress",
"offeringId": "offering123",
"amount": "1000"
}'
POST
newInvest
Prepares unsigned transactions for making an investment in a Security Token Offering (STO). This endpoint is equivalent to calling
/prepare-transactions with method=newInvest.
Request Body
| 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 “newInvest”) |
tokenSymbol | string | Yes | Symbol of the token to invest in |
paymentTokenSymbol | string | Yes | Symbol of the payment token |
amount | string | Yes | Amount to invest |
investorAddress | string | Yes | Address of the investor |
investorEmail | string | Yes | Email of the investor |
Example Request
Response
Returns an array of unsigned transactions that need to be signed and a transaction ID for tracking.Notes
- The investor must have sufficient balance of the payment token
- Investment amount must be within the STO’s min/max investment limits
- The STO must be active and within the investment period
- The investor address will be automatically whitelisted if required
Authorizations
Body
application/json