POST
/
prepare-transactions
/
closeOffer
closeOffer
curl --request POST \
  --url https://api.sandbox.brickken.com/prepare-transactions/closeOffer \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chainId": "<string>",
  "signerAddress": "<string>",
  "tokenSymbol": "<string>"
}'
{
  "transactions": [
    {}
  ],
  "txId": "<string>"
}
Prepares unsigned transactions for closing an active Security Token Offering (STO). This endpoint is equivalent to calling /prepare-transactions with method=closeOffer.

Request Body

ParameterTypeRequiredDescription
signerAddressstringYesAddress that will sign the transaction (must be the tokenizer)
chainIdstringYesBlockchain network identifier (hex format)
stoIdstringYesID of the STO to close
tokenizerEmailstringYesEmail of the tokenizer

Example Request

{
  "signerAddress": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b",
  "chainId": "aa36a7",
  "stoId": "sto-123",
  "tokenizerEmail": "tokenizer@example.com"
}

Response

Returns an array of unsigned transactions that need to be signed and a transaction ID for tracking.
{
  "transactions": [
    {
      "from": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b",
      "to": "0xTargetAddress",
      "value": {"type": "BigNumber", "hex": "0x00"},
      "nonce": 1,
      "chainId": 11155111,
      "data": "0x...",
      "type": 2,
      "maxPriorityFeePerGas": {"type": "BigNumber", "hex": "0x..."},
      "maxFeePerGas": {"type": "BigNumber", "hex": "0x..."},
      "gasLimit": {"type": "BigNumber", "hex": "0x..."}
    }
  ],
  "txId": "unique-transaction-id"
}

Notes

  • Only the tokenizer who created the STO can close it
  • Closing an STO before the end date will make it unavailable for new investments
  • Existing investments remain valid and tokens can still be claimed
  • This action is irreversible once the transaction is confirmed

Authorizations

x-api-key
string
header
required

Body

application/json
chainId
string
signerAddress
string
tokenSymbol
string

Response

200 - application/json

Successful response

transactions
object[]
required
txId
string
required