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"
}'
/prepare-transactions with method=newInvest.
| 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 |