# nft_buy_offers [[Source]](https://github.com/XRPLF/rippled/blob/master/src/xrpld/rpc/handlers/NFTOffers.cpp) The `nft_buy_offers` method returns a list of buy offers for a given [NFToken](/docs/references/protocol/data-types/nftoken) object. NonFungibleTokensV1_1 ## Request Format An example of the request format: Note There is no commandline syntax for this method. You can use the [json method](/docs/references/http-websocket-apis/public-api-methods/utility-methods/json) to access this method from the commandline instead. WebSocket ```json { "command": "nft_buy_offers", "nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007", "ledger_index": "validated" } ``` JSON-RPC ```json { "method": "nft_buy_offers", "params": [{ "nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007", "ledger_index": "validated" }] } ``` The request includes the following parameters: | Field | Type | Description | | --- | --- | --- | | `nft_id` | String | The unique identifier of a [NFToken](/docs/references/protocol/data-types/nftoken) object. | | `ledger_hash` | String | *(Optional)* The unique hash of the ledger version to use. (See [Specifying Ledgers](/docs/references/protocol/data-types/basic-data-types#specifying-ledgers)) | | `ledger_index` | String or Number | *(Optional)* The [ledger index](/docs/references/protocol/data-types/basic-data-types#ledger-index) of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying Ledgers](/docs/references/protocol/data-types/basic-data-types#specifying-ledgers)) | | `limit` | Integer | *(Optional)* Limit the number of NFT buy offers to retrieve. This value cannot be lower than 50 or more than 500. Positive values outside this range are replaced with the closest valid option. The default is 250. | | `marker` | [Marker](/docs/references/http-websocket-apis/api-conventions/markers-and-pagination) | *(Optional)* Value from a previous paginated response. Resume retrieving data where that response left off. | ## Response Format An example of a successful response: WebSocket ```json { "result": { "nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007", "offers": [ { "amount": "1500", "flags": 0, "nft_offer_index": "3212D26DB00031889D4EF7D9129BB0FA673B5B40B1759564486C0F0946BA203F", "owner": "rsuHaTvJh1bDmDoxX9QcKP7HEBSBt4XsHx" } ] }, "status": "success", "type": "response" } ``` JSON-RPC ```json { "result": { "nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007", "offers": [ { "amount": "1500", "flags": 0, "nft_offer_index": "3212D26DB00031889D4EF7D9129BB0FA673B5B40B1759564486C0F0946BA203F", "owner": "rsuHaTvJh1bDmDoxX9QcKP7HEBSBt4XsHx" } ], "status": "success" } } ``` The response follows the [standard format](/docs/references/http-websocket-apis/api-conventions/response-formatting), with a successful result containing the following fields: | `Field` | Type | Description | | --- | --- | --- | | `nft_id` | String | The NFToken these offers are for, as specified in the request. | | `offers` | Array | A list of buy offers for the token. Each of these is formatted as a **Buy Offer** (see below). | | `limit` | Number | *(May be omitted)* The `limit`, as specified in the request. | | `marker` | [Marker](/docs/references/http-websocket-apis/api-conventions/markers-and-pagination) | *(May be omitted)* Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no pages of information after this one. | ### Buy Offers Each member of the `offers` array represents one [NFTokenOffer object](/docs/references/protocol/ledger-data/ledger-entry-types/nftokenoffer) to buy the NFT in question and has the following fields: | `Field` | Type | Description | | --- | --- | --- | | `amount` | String or Object | The amount offered to buy the NFT for, as a String representing an amount in drops of XRP, or an object representing an amount of a fungible token. (See [Specifying Currency Amounts](/docs/references/protocol/data-types/basic-data-types#specifying-currency-amounts)) | | `flags` | Number | A set of bit-flags for this offer. See [NFTokenOffer flags](/docs/references/protocol/ledger-data/ledger-entry-types/nftokenoffer#nftokenoffer-flags) for possible values. | | `nft_offer_index` | String | The [ledger object ID](/docs/references/protocol/ledger-data/common-fields) of this offer. | | `owner` | String | The account that placed this offer. | ## Possible Errors * Any of the [universal error types](/docs/references/http-websocket-apis/api-conventions/error-formatting#universal-errors). * `invalidParams` - One or more fields are specified incorrectly, or one or more required fields are missing. * `actNotFound` - The [Address](/docs/references/protocol/data-types/basic-data-types#addresses) specified in the `account` field of the request does not correspond to an account in the ledger. * `lgrNotFound` - The ledger specified by the `ledger_hash` or `ledger_index` does not exist, or it does exist but the server does not have it. * `objectNotFound` - The NFT does not have any buy offers (note that *object* refers to the buy offer rather than the NFT itself).