update_token_metadata
An entrypoint that updates share token metadata. Also can add new fields.
Call parameters
type meta_pair_type is [@layout:comb] record [
key : string;
value : bytes;
]
type upd_tok_meta_type is [@layout:comb] record [
token_id : nat;
token_info : list(meta_pair_type);
]meta_pair_type
Field
Type
Description
key
string
Metadata key
value
bytes
Metadata value
upd_tok_meta_type
Field
Type
Description
token_id
nat
Token's (farm's) ID
Usage
Errors
Not-admin-senderof the transaction is not current administrator.QSystem/farm-not-set- farming withfidparameter doesn't exist.
Last updated