POST
/
api
/
account
/
close
cURL
curl --request POST \
  --url http://localhost:3000/api/account/close \
  --header 'Content-Type: application/json' \
  --data '{
  "commitment": "Confirmed",
  "account": "<string>",
  "environment": "<string>",
  "index": 123,
  "mint": "<string>",
  "reference": "<string>",
  "referenceId": "<string>",
  "referenceType": "<string>"
}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "amount": "<string>",
  "decimals": 123,
  "destination": "<string>",
  "errors": [
    {
      "id": "<string>",
      "logs": [
        "<string>"
      ],
      "message": "<string>",
      "type": "BadNonce",
      "instruction": 123
    }
  ],
  "explorerUrl": "<string>",
  "feePayer": "<string>",
  "ip": "<string>",
  "mint": "<string>",
  "processingDuration": 123,
  "reference": "<string>",
  "signature": "<string>",
  "solanaCommitted": "2023-11-07T05:31:56Z",
  "solanaCommittedDuration": 123,
  "solanaFinalized": "2023-11-07T05:31:56Z",
  "solanaFinalizedDuration": 123,
  "solanaStart": "2023-11-07T05:31:56Z",
  "solanaTransaction": {},
  "source": "<string>",
  "status": "Committed",
  "totalDuration": 123,
  "tx": "<string>",
  "ua": "<string>",
  "webhookEventStart": "2023-11-07T05:31:56Z",
  "webhookEventEnd": "2023-11-07T05:31:56Z",
  "webhookEventDuration": 123,
  "webhookVerifyStart": "2023-11-07T05:31:56Z",
  "webhookVerifyEnd": "2023-11-07T05:31:56Z",
  "webhookVerifyDuration": 123
}

Body

application/json
commitment
enum<string>
required
Available options:
Confirmed,
Finalized,
Processed
account
string
required
environment
string
required
index
integer
required
mint
string
required
reference
string | null
referenceId
string | null
deprecated
referenceType
string | null
deprecated

Response

default - application/json
id
string | null
createdAt
string<date-time> | null
updatedAt
string<date-time> | null
amount
string | null
decimals
integer | null
destination
string | null
errors
object[] | null
explorerUrl
string | null
feePayer
string | null
ip
string | null
mint
string | null
processingDuration
integer | null
reference
string | null
signature
string | null
solanaCommitted
string<date-time> | null
solanaCommittedDuration
integer | null
solanaFinalized
string<date-time> | null
solanaFinalizedDuration
integer | null
solanaStart
string<date-time> | null
solanaTransaction
object | null
source
string | null
status
enum<string>
Available options:
Committed,
Confirmed,
Failed,
Finalized,
Processing
totalDuration
integer | null
tx
string | null
ua
string | null
webhookEventStart
string<date-time> | null
webhookEventEnd
string<date-time> | null
webhookEventDuration
integer | null
webhookVerifyStart
string<date-time> | null
webhookVerifyEnd
string<date-time> | null
webhookVerifyDuration
integer | null