Account
Close Account
Account
Close Account
POST
/
api
/
account
/
close
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
Response
default - application/json
The response is of type object
.
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
}