Skip to main content

Restock a supply

This method allows a TEOS user to increase the available amount of an existing supply by adding additional sparks. The restocked amount is added to the RemainingAmount of the supply, making more units available for trades or warp executions.

📘 Learn more about supplies.

Request Endpoint​

POST
/odata/v1.0/Supplies({key})/Restock

Preconditions:

  • The supply must exist.
  • The supply must not be expired or deleted.

Sample value of message​

POST /Supplies('0x1EAEFD42D684567ABDC7000193A96C4653DE1314DB20000167242CB20000024E')/Restock

Content-Type: application/json

{
"additionalAmount": "10000"
}

Parameters​

NameDescriptionMandatory
keyThe identifier of the supply to restock✅

Request body​

application/json

FieldTypeDescriptionMandatory
additionalAmountstringNumber of additional sparks to add to the supply✅

Media type
application/json

Example Response Value​

{
"Id": "C0D34D73-6FD3-40F2-A7E1-08D9412448F7",
"State": "3",
"BlockchainTransactionId": "0x748ac47e7226cae0e4e13373375f33ab9e4d43ef29d85d233162a7e7e913703b",
"CorrelationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Type": "ActivateAsset",
"OnCreated": "2025-10-08T10:20:23.027Z",
"OnUpdated": "2025-10-08T10:20:23.027Z",
"OnSubmitted": "2025-10-08T10:20:23.027Z",
"OnCommitted": "2025-10-08T10:20:23.027Z",
"OnConfirmed": "2025-10-08T10:20:23.027Z",
"OnRevokedByBlockchain": "2025-10-08T10:20:23.027Z",
"OnRevokedByUser": "2025-10-08T10:20:23.027Z",
"OnRevokedByTxServer": "2025-10-08T10:20:23.027Z",
"SignedBy": "string",
"CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"GasPrice": "string",
"GasUsed": "string",
"DataAsJson": "string",
"SigningParametersAsJson": "string"
}

Response Fields Description​

FieldTypeDescription
IdstringIdentifier of the transaction
StatestringCurrent state of the transaction
BlockchainTransactionIdstringID of the transaction on blockchain
CorrelationIdstringCorrelation identifier for tracking
TypestringType of the transaction
OnCreateddatetimeTimestamp when the transaction was created
OnUpdateddatetimeTimestamp when the transaction was last updated
OnSubmitteddatetimeTimestamp when the transaction was submitted
OnCommitteddatetimeTimestamp when the transaction was committed
OnConfirmeddatetimeTimestamp when the transaction was confirmed
OnRevokedByBlockchaindatetimeTimestamp if transaction was revoked by blockchain
OnRevokedByUserdatetimeTimestamp if transaction was revoked by user
OnRevokedByTxServerdatetimeTimestamp if transaction was revoked by transaction server
SignedBystringAddress or identifier of the signer
CreatedBystringIdentifier of the creator of the transaction
GasPricestringGas price used in blockchain transaction
GasUsedstringGas consumed for transaction execution
DataAsJsonstringAdditional data in JSON format
SigningParametersAsJsonstringSigning parameters in JSON format

Responses​

CodeDescription
201The transaction was successfully created
202Accepted
400The supply restock data is invalid. Error details are included
401Unauthorized