Skip to main content

Retrieve an Offer

GET 

https://horizon-testnet.stellar.org/offers/:offer_id

The single offer endpoint provides information on a specific offer.

Request

Path Parameters

    offer_id anyrequired

    A unique identifier for this offer.

Responses

Success

Schema

    _links

    object

    self

    object

    href linkrequired
    templated boolean

    next

    object

    href linkrequired
    templated boolean

    prev

    object

    href linkrequired
    templated boolean

    _embedded

    object

    records

    object[]

  • Array [

  • _links

    object

    self

    object

    required

    href linkrequired
    templated boolean

    offer_maker

    object

    required

    href linkrequired
    templated boolean
    id id (string)required
    paging_token stringrequired
    seller address (string)required

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    selling

    object

    required

    asset_type stringrequired
    asset_code string
    asset_issuer string

    buying

    object

    required

    asset_type stringrequired
    asset_code string
    asset_issuer string
    amount stringrequired

    price_r

    object

    required

    n int32
    d int32
    price stringrequired
    last_modified_ledger uint32required
    last_modified_time stringrequired
    sponser string
  • ]

curl -L 'https://horizon-testnet.stellar.org/offers/:offer_id' \
-H 'Accept: application/json'
Request Collapse all
Base URL
https://horizon-testnet.stellar.org
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!

Did you find this page helpful?