Skip to main content

Retrieve an Offer REST API Endpoint

Retrieve information about a specific offer.

Updated on
Oct 04, 2023

Retrieve an Offer REST API Endpoint

Path Parameters

offer_id
string
REQUIRED
A unique identifier for this offer

Returns

_links
object
Links to related resources associated with the specific offers
self
object
The self link object which contains the following field:
href
string
A link to the detailed information about the specific offer record
offer_maker
object
The offer_maker link object which contains the following field:
href
string
A link to the account of the entity that created the offer
id
string
The unique identifier of the offer
paging_token
string
The paging token for the offer record, aiding in navigation
seller
string
The public key of the account that created the offer
selling
string
Details about the asset being sold in the offer
asset_type
string
The code of the asset being sold
asset_code
string
The code of the asset being sold
asset_issuer
string
The issuer's public key of the asset being sold
buying
string
Details about the asset being bought in exchange for the selling asset
asset_type
string
he type of the asset being bought, which could be native or credit_alphanum4/12
asset_code
string
The code of the asset being bought
asset_issuer
string
The issuer's public key of the asset being bought
amount
string
The amount of the selling asset that the offer is willing to exchange
price
string
The rational representation of the price of the offer
n
integer
The numerator
d
integer
The denominator
price
string
The decimal representation of the price calculated from price_r
last_modified_ledger
string
he ledger sequence number in which the offer was last modifiedr
last_modified_time
string
The timestamp when the offer was last modified
sponsor
string
The account ID of the sponsor
Request
1
curl -L -X GET 'https://docs-demo.stellar-mainnet.quiknode.pro/offers/12' \
2
-H 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free