# NFTokenAcceptOffer | xrpl
Documentation for xrpl

# Interface NFTokenAcceptOffer

The NFTokenOfferAccept transaction is used to accept offers to buy or sell an NFToken. It can either:

1. Allow one offer to be accepted. This is called direct mode.
2. Allow two distinct offers, one offering to buy a given NFToken and the other offering to sell the same NFToken, to be accepted in an atomic fashion. This is called brokered mode.

To indicate direct mode, use either the `sell_offer` or `buy_offer` fields, but not both. To indicate brokered mode, use both the `sell_offer` and `buy_offer` fields. If you use neither `sell_offer` nor `buy_offer`, the transaction is invalid.

#### Hierarchy

- BaseTransaction
  - NFTokenAcceptOffer

- Defined in packages/xrpl/src/models/transactions/NFTokenAcceptOffer.ts:26

#####
Index

### Properties

Account
AccountTxnID?
Fee?
Flags?
LastLedgerSequence?
Memos?
NFTokenBrokerFee?
NFTokenBuyOffer?
NFTokenSellOffer?
Sequence?
Signers?
SigningPubKey?
SourceTag?
TicketSequence?
TransactionType
TxnSignature?

## Properties

### Account

Account: string

The unique address of the account that initiated the transaction.

Inherited from BaseTransaction.Account

- Defined in packages/xrpl/src/models/transactions/common.ts:95

### `Optional` AccountTxnID

AccountTxnID?: string

Hash value identifying another transaction. If provided, this transaction is only valid if the sending account's previously-sent transaction matches the provided hash.

Inherited from BaseTransaction.AccountTxnID

- Defined in packages/xrpl/src/models/transactions/common.ts:121

### `Optional` Fee

Fee?: string

Integer amount of XRP, in drops, to be destroyed as a cost for distributing this transaction to the network. Some transaction types have different minimum requirements.

Inherited from BaseTransaction.Fee

- Defined in packages/xrpl/src/models/transactions/common.ts:108

### `Optional` Flags

Flags?: number | GlobalFlags

Set of bit-flags for this transaction.

Inherited from BaseTransaction.Flags

- Defined in packages/xrpl/src/models/transactions/common.ts:123

### `Optional` LastLedgerSequence

LastLedgerSequence?: number

Highest ledger index this transaction can appear in. Specifying this field places a strict upper limit on how long the transaction can wait to be validated or rejected.

Inherited from BaseTransaction.LastLedgerSequence

- Defined in packages/xrpl/src/models/transactions/common.ts:129

### `Optional` Memos

Memos?: Memo[]

Additional arbitrary information used to identify this transaction.

Inherited from BaseTransaction.Memos

- Defined in packages/xrpl/src/models/transactions/common.ts:133

### `Optional` NFTokenBrokerFee

NFTokenBrokerFee?: Amount

This field is only valid in brokered mode. It specifies the amount that the broker will keep as part of their fee for bringing the two offers together; the remaining amount will be sent to the seller of the NFToken being bought. If specified, the fee must be such that, prior to accounting for the transfer fee charged by the issuer, the amount that the seller would receive is at least as much as the amount indicated in the sell offer.

This functionality is intended to allow the owner of an NFToken to offer their token for sale to a third party broker, who may then attempt to sell the NFToken on for a larger amount, without the broker having to own the NFToken or custody funds.

Note: in brokered mode, the offers referenced by NFTokenBuyOffer and NFTokenSellOffer must both specify the same NFTokenID; that is, both must be for the same NFToken.

- Defined in packages/xrpl/src/models/transactions/NFTokenAcceptOffer.ts:64

### `Optional` NFTokenBuyOffer

NFTokenBuyOffer?: string

Identifies the NFTokenOffer that offers to buy the NFToken.

In direct mode this field is optional, but either NFTokenSellOffer or NFTokenBuyOffer must be specified. In brokered mode, both NFTokenSellOffer and NFTokenBuyOffer must be specified.

- Defined in packages/xrpl/src/models/transactions/NFTokenAcceptOffer.ts:43

### `Optional` NFTokenSellOffer

NFTokenSellOffer?: string

Identifies the NFTokenOffer that offers to sell the NFToken.

In direct mode this field is optional, but either NFTokenSellOffer or NFTokenBuyOffer must be specified. In brokered mode, both NFTokenSellOffer and NFTokenBuyOffer must be specified.

- Defined in packages/xrpl/src/models/transactions/NFTokenAcceptOffer.ts:35

### `Optional` Sequence

Sequence?: number

The sequence number of the account sending the transaction. A transaction is only valid if the Sequence number is exactly 1 greater than the previous transaction from the same account. The special case 0 means the transaction is using a Ticket instead.

Inherited from BaseTransaction.Sequence

- Defined in packages/xrpl/src/models/transactions/common.ts:115

### `Optional` Signers

Signers?: Signer[]

Array of objects that represent a multi-signature which authorizes this transaction.

Inherited from BaseTransaction.Signers

- Defined in packages/xrpl/src/models/transactions/common.ts:138

### `Optional` SigningPubKey

SigningPubKey?: string

Hex representation of the public key that corresponds to the private key used to sign this transaction. If an empty string, indicates a multi-signature is present in the Signers field instead.

Inherited from BaseTransaction.SigningPubKey

- Defined in packages/xrpl/src/models/transactions/common.ts:151

### `Optional` SourceTag

SourceTag?: number

Arbitrary integer used to identify the reason for this payment, or a sender on whose behalf this transaction is made. Conventionally, a refund should specify the initial payment's SourceTag as the refund payment's DestinationTag.

Inherited from BaseTransaction.SourceTag

- Defined in packages/xrpl/src/models/transactions/common.ts:145

### `Optional` TicketSequence

TicketSequence?: number

The sequence number of the ticket to use in place of a Sequence number. If this is provided, Sequence must be 0. Cannot be used with AccountTxnID.

Inherited from BaseTransaction.TicketSequence

- Defined in packages/xrpl/src/models/transactions/common.ts:156

### TransactionType

TransactionType: "NFTokenAcceptOffer"

Overrides BaseTransaction.TransactionType

- Defined in packages/xrpl/src/models/transactions/NFTokenAcceptOffer.ts:27

### `Optional` TxnSignature

TxnSignature?: string

The signature that verifies this transaction as originating from the account it says it is from.

Inherited from BaseTransaction.TxnSignature

- Defined in packages/xrpl/src/models/transactions/common.ts:161

Generated using TypeDoc