XRP Ledger Dev Portalをさまざまな言語で提供するよう取り組んでいますが、すべてのページがすべての言語で提供されているわけではありません。ご協力いただける場合は、ぜひ貢献をお願いいたします
NFTokenCreateOffer
The XLS-20 standard for NFTs has a preliminary implementation that can be used in test networks, but is not yet available as an amendment to the XRP Ledger protocol. An amendment may be included in a future XRP Ledger release.
Creates either a new Sell offer for an NFToken
owned by the account executing the transaction, or a new Buy offer for an NFToken
owned by another account.
If successful, the transaction creates a NFTokenOffer object. Each offer counts as one object towards the owner reserve of the account that placed the offer.
Example NFTokenCreateOffer JSON
{
"TransactionType": "NFTokenCreateOffer",
"Account": "rs8jBmmfpwgmrSPgwMsh7CvKRmRt1JTVSX",
"NFTokenID": "000100001E962F495F07A990F4ED55ACCFEEF365DBAA76B6A048C0A200000007",
"Amount": "1000000",
"Flags": 1
}
NFTokenCreateOffer Fields
In addition to the common fields, a NFTokenCreateOffer transaction uses the following fields:
Field | JSON Type | Internal Type | Description |
---|---|---|---|
Owner |
String | AccountID | (Optional) Who owns the corresponding NFToken . If the offer is to buy a token, this field must be present and it must be different than the Account field (since an offer to buy a token one already holds is meaningless). If the offer is to sell a token, this field must not be present, as the owner is, implicitly, the same as the Account (since an offer to sell a token one doesn't already hold is meaningless). |
NFTokenID |
String | Hash256 | Identifies the NFToken object that the offer references. |
Amount |
Currency Amount | Amount | Indicates the amount expected or offered for the corresponding NFToken . The amount must be non-zero, except where this is an offer to sell and the asset is XRP; then, it is legal to specify an amount of zero, which means that the current owner of the token is giving it away, gratis, either to anyone at all, or to the account identified by the Destination field. |
Expiration |
Number | UInt32 | (Optional) Indicates the time after which the offer will no longer be valid. The value is the number of seconds since the Ripple Epoch. |
Destination |
String | AccountID | (Optional) If present, indicates that this offer may only be accepted by the specified account. Attempts by other accounts to accept this offer MUST fail. |
NFTokenCreateOffer Flags
Transactions of the NFTokenCreateOffer type support additional values in the Flags
field, as follows:
Flag Name | Hex Value | Decimal Value | Description |
---|---|---|---|
tfSellToken |
0x00000001 |
1 |
If enabled, indicates that the offer is a sell offer. Otherwise, it is a buy offer. |