mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
updates per Scott Schurr
This commit is contained in:
@@ -8,7 +8,7 @@ labels:
|
||||
|
||||
# Authorizing Another Account to Mint Your NFTs
|
||||
|
||||
Each account can have 0 or 1 authorized minter that can mint NFTs on its behalf. Combined with the brokered sales, creators would have the option of allowing other accounts to mint and sell NFTs for them, so that they can focus on making more NFTs.
|
||||
Each account can have 0 or 1 authorized minter that can mint NFTs on its behalf. By authorizing a minter, a creator can allow a different account to mint NFTs for them, which allows them to focus on making more NFTs.
|
||||
|
||||
## Assigning an Authorized Minter
|
||||
|
||||
@@ -23,14 +23,14 @@ tx_json = {
|
||||
}
|
||||
```
|
||||
|
||||
_NFTokenMinter_ is an account ID of an account on the same XRP Ledger instance. The `asfAuthorizedNFTokenMinter` flag authorizes the `NFTokenMinter` account to mint NFTs on behalf of the `Account`.
|
||||
`NFTokenMinter` is an account ID of an account on the same XRP Ledger instance. The `asfAuthorizedNFTokenMinter` flag authorizes the `NFTokenMinter` account to mint NFTs on behalf of the `Account`.
|
||||
|
||||
*Note*: The `asfAuthorizedNFTokenMinter` flag is used only in the `AccountSet` transaction. It indicates whether the transaction affects the presence or value of the NFTokenMinter field on an account root. Specifically, there is no corresponding flag on the AccountRoot.
|
||||
|
||||
|
||||
## Minting an NFT for Another Account
|
||||
|
||||
You mint tokens for another account using the same `NFTokenMint` transaction you use for minting your own tokens. The difference is that you include the `Issuer` field, the account ID of the account for which you are minting the NFT.
|
||||
You mint tokens for another account using the standard `NFTokenMint` transaction. The difference is that you must include the `Issuer` field, the account ID of the account for which you are minting the NFT.
|
||||
|
||||
```json
|
||||
const transactionBlob = {
|
||||
@@ -46,3 +46,15 @@ const transactionBlob = {
|
||||
```
|
||||
|
||||
When you or a broker sells the NFT, the TransferFee (percentage of sale) is credited to your issuing account.
|
||||
|
||||
## Unassigning an Authorized Minter
|
||||
|
||||
To remove an authorized minter, use the `AccountSet` transaction to clear the `asfAuthorizedNFTokenMinter` flag.
|
||||
|
||||
``` json
|
||||
tx_json = {
|
||||
"TransactionType": "AccountSet",
|
||||
"Account": "rrE5EgHN4DfjXhR9USecudHm7UyhTYq6m",
|
||||
"ClearFlag": xrpl.AccountSetAsfFlags.asfAuthorizedNFTokenMinter
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user