avalonmeta.com
"2020-11-04T13:43:39"
Expiry date of the permissiontrue
broadcast, keep it true to include the transaction in upcoming block."AVALON NFT URI"
is the URI that has additional information about this NFT.is_transferableflag
is set to true, also if permissions are enabled both from and to accounts have to be whitelisted.["1.31.0","1.31.1"]
- List of NFTs to sell or buy{"amount":100,"asset_id":"1.3.0"}
minimum bid price expected{"amount":10000,"asset_id":"1.3.0"}
maximum bid price expectedfalse
buying_item denotes if this is an auction or reverse auction"2020-08-18T11:05:39"
Listing expiry datenull
Optional metadata, if not null assign a string valuetrue
broadcast value mentioned above{"amount":10000,"asset_id":"1.3.0"}
bid price1.29.0
Offer listing objected created from create_offer commandtrue
broadcast value mentioned above1.29.0
is the offer objecttrue
broadcast value mentioned above100
Number of items per fetch (pagination)1.29.0
Index to start the search for. (pagination)10
Number of items per fetch (pagination)1.29.6
Index to start the search for. (pagination)10
Number of items per fetch (pagination)1.29.6
Index to start the search for. (pagination)10
Number of items per fetch (pagination)2.24.2
Index to start the search for. (pagination)account02
issuer10
Number of items per fetch (Pagination)1.29.0
Index to start the search for. (pagination)1.31.0
NFT Id10
Number of items per fetch (Pagination)1.29.1
Index to start the search for. (pagination)1.31.0
NFT Id10
Number of items per fetch (Pagination)2.24.1
Index to start the search for. (pagination)Hierarchical role based permissions is a feature of Peerplays blockchain which helps in increasing the security of user accounts.Users don’t have to use their active and owner keys for everything they do on the chain.They can create role based custom permissions and map them to different keys other than active and owner keys.They can then use these custom keys to sign transactions.
nftcreatepermission
{ "weight_threshold": 1, "account_auths": [["1.2.52",1]], "key_auths": [["TEST71ADtL4fzjGKErk9nQJrABmCPUR8QCjkCUNfdmgY5yDzQGhwto",1]], "address_auths": [] }
This represents an authority structure,account_auths
represent the amount of weight each accounts have on our account, in this example 1.2.52 has weight 1key_auths
represent the amount of weight each public key has on this account, in this exampleTEST71ADtL4fzjGKErk9nQJrABmCPUR8QCjkCUNfdmgY5yDzQGhwto
has weight 1Weight_threshold
represent the required weight for a transaction to be signed successfully.In this example either1.2.52
can sign with his active key orTEST71ADtL4fzjGKErk9nQJrABmCPUR8QCjkCUNfdmgY5yDzQGhwto
can be used to sign a transaction successfully.
key_auths
and added 1.2.53
with weight 1, which is equal to weight_threshold
, so 1.2.53
can alone sign the transaction successfully.Creating custom authority maps the created custom permissions with the actual operations present on the blockchain.It also has expiry time by when this custom permission is no more valid on any given account and operation combination.
account01
is the owner of the account and the one who created a permission 1.27.0
1.27.0
is the custom permission created"2020-11-02T17:53:25"
valid from timestamp"2020-12-03T17:53:25"
valid to timestamptrue
broadcastaccount01
can be done by authorities present in 1.27.0
instead of account owner account01
valid_from
and valid_to
times,owner_account_id_or_name
resource owner Eg. account creating an NFT Metadata resourcename
name of the account role Eg. Movie Interstellar Permissionsmetadata
metadata for additional info Eg. Some JSON struct or an external URL with infoallowed_operations
allowed operations that whitelisted_accounts
can perform on this resource.whitelisted_accounts
All the accounts that can perform any allowed_operations
on a resourcevalid_to
exports time of the account role, valid from is the time of creation of the account rolebroadcast
broadcast mentioned aboveallowed_operations
areoffer_operation
(88), Checks if the user who is listing an NFT for sale is in whitelisted_accounts
, if not the user can’t list the NFTs in marketplace.bid_operation
(89), Checks if the user who is bidding for an NFT on sale is in whitelisted_accounts
, if not the user can’t bid / buy the NFT from marketplace.nft_safe_transfer_from_operation
(95), Checks if the user who transferring i.e. owner is in whitelisted_accounts
, if yes it checks the to-account is also in the whitelisted_accounts
. If any of the two checks fail, the transfer fails.1.2.40, 1.2.41, 1.2.43
operations_to_add
new operations to add to the account roleoperations_to_remove
existing operations to remove from the account roleaccounts_to_add
new accounts to add to the whitelistaccounts_to_remove
existing accounts to remove from the whitelist88
offer_operation
(88)
is added95
nft_safe_transfer_from_operation
is removed1.2.42
account to the whitelist1.2.40
account removed from the whitelistis_transferable
and is_sellable
flags configured on metadata control the transfer and selling properties of all the NFTs minted from the metadata.is_transferable
is false and is_sellable
is true, then the NFT owner can only list it in marketplace and sell it. He can’t transfer to another user.is_transferable
is true and is_sellable
is false, then the NFT owner cannot list it in marketplace and he can freely transfer it to other users.is_transferable
is false and is_sellable
is false, then the NFT owner can neither be transfer nor sell the NFT. It remains with him forever.offer_operation
, bid_operation
, cancel_offer_operation
, finalize_offer_operation
operations/smart contracts.revenue_partner
gets the revenue_split
percent of the bid. This is configured during NFT metadata creation. So for all the NFT sales that are based on the metadata, revenue_partner
gets the cut.is_transferable
to false and is_sellable
to trueis_transferable
to true and is_sellable
to false.is_transferable
to false and is_sellable
to false.