POST
/
commit
cURL
curl --request POST \
  --url https://core-api-dev.vanish.trade/commit \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "tx_id": "<string>"
}'
{
  "status": "pending",
  "action_type": "deposit",
  "already_processed": true,
  "balance_changes": [
    {
      "token_address": "<string>",
      "change": "<string>"
    }
  ],
  "vanish_fee": "<string>",
  "tx_fee": "<string>",
  "user_address": "<string>",
  "screening_eta_seconds": 123
}

Authorizations

x-api-key
string
header
required

Body

application/json

Details of the commit request.

tx_id
string
required

The transaction id of any action (trade/deposit/withdraw)

Response

Successful commit response.

status
enum<string>
required

The result of the commit operation.

Available options:
pending,
completed,
failed,
expired,
rejected
action_type
enum<string>
required

The type of action that was committed. Indicates whether the operation was a deposit, withdrawal, or trade.

Available options:
deposit,
withdraw,
trade
already_processed
boolean
required

Indicates whether the given transaction ID (tx_id) was already processed before this commit attempt.

vanish_fee
string<int64>
required

The fee amount charged by Vanish, expressed in lamports.

tx_fee
string<int64>
required

The transaction fee amount, expressed in lamports.

user_address
string
required

The wallet address of the user who created this commit.

balance_changes
object[]

A list of token balance changes that resulted from the committed action. Empty if the commit failed or was already processed.

screening_eta_seconds
integer

Optional. If provided, the estimated time, in seconds, required to screen the commit.