Skip to main content
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 '{
  "method": "closeOffer",
  "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
chainIdstringYesBlockchain network identifier (hex format)
methodstringYesTransaction method type (should be “closeOffer”)
tokenSymbolstringYesSymbol of the token for the offer to close

Example Request

{
  "signerAddress": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b",
  "chainId": "aa36a7",
  "method": "closeOffer",
  "tokenSymbol": "PROP1"
}

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

Request body for closeOffer method.

method
string

The operation to be performed.

Example:

"closeOffer"

chainId
string
signerAddress
string
tokenSymbol
string

Response

200 - application/json

Successful response

transactions
object[]
required
txId
string
required