Skip to main content

Retrieve a supply by id

Retrieve a specific supply offer by its unique identifier. A Supply represents an offer created by a user to exchange a specific amount of sparks of one asset for a desired amount of another asset.

note

Supplies cannot be ordered by the ExchangeRate field.

📘 Learn more about supplies.

Request Endpoint:​

GET /v1.0/v1.0/Supplies({key})

Parameters​

NameDescription
keystring (path) — The requested supply identifier. Example: 0x0086D7926780773AD29E00013935945BCF0F92023FEA00010E21EA5700000161

Supported OData query options: Expand, Select.

Responses​

Code: 200
Description: The supply was successfully retrieved.
Media type: application/json

Example Response Body:​

In EVM-compatible networks (e.g., Sparknet, Ethereum, and Polygon), the "OriginatorAddress" and "ReceiverAddress" are 42 characters long. In non-EVM networks, the address length may differ. For example, on Internet Computer, it is 63 characters.

{
"Id": "string",
"ExtReference": "string",
"OriginatorAddress": "string",
"ReceiverAddress": "string",
"UniqueAssetIdOffered": "string",
"UniqueAssetIdDesired": "string",
"TotalAmount": "string",
"RemainingAmount": "string",
"ExchangeRate": "string",
"TakeAll": true,
"ExpiryBlock": "string",
"ExpiryTime": "2025-10-08T09:16:23.146Z",
"CreatedOnBlock": "string",
"CreatedInBlockchainOn": "2025-10-08T09:16:23.146Z",
"CreatedOn": "2025-10-08T09:16:23.146Z",
"UpdatedOn": "2025-10-08T09:16:23.146Z"
}

Response Variables Description:​

FieldTypeDescription
IdstringUnique identifier of the supply.
ExtReferencestringOptional external reference for the supply.
OriginatorAddressstringWallet address of the issuer/originator of the supply.
ReceiverAddressstringWallet address of the receiver of the desired asset.
UniqueAssetIdOfferedstringID of the asset offered for exchange.
UniqueAssetIdDesiredstringID of the asset desired in exchange.
TotalAmountstringTotal amount of the offered asset in sparks.
RemainingAmountstringRemaining amount of the offered asset available for exchange.
ExchangeRatestringAmount of desired asset received per 1 spark of offered asset.
TakeAllbooleanIndicates if the whole offered amount should be taken in one iteration.
ExpiryBlockstringBlockchain block number when the supply expires.
ExpiryTimestringDate and time when the supply expires.
CreatedOnBlockstringBlockchain block number when the supply was created.
CreatedInBlockchainOnstringTimestamp when the supply was written to blockchain.
CreatedOnstringTimestamp when the supply was created in the TEOS platform.
UpdatedOnstringTimestamp of the last update of the supply.

Response Codes:​

CodeDescription
200Supply successfully retrieved.
400The request is invalid. Error details are included.
401Unauthorized
404The supply does not exist.