►
From YouTube: NEAR Certified Demo | Episode 8.3 -- NFT
Description
This demonstration was presented by the author(s) after just 1 week of working with the NEAR platform as part of the NEAR Certified Developer program.
You can find the source code to this demo here:
https://github.com/Learn-NEAR/NCD-08--NFT
---
Follow the latest from NEAR Protocol on:
Website: https://near.org/
Discord: https://near.chat/
Blog: https://near.org/blog/
Twitter: https://twitter.com/NEARProtocol
GitHub: https://github.com/near https://github.com/nearprotocol
#Blockchain #FutureIsNEAR #NEAR #nearprotocol
B
Of
course,
if
you
go
check
the
github
we
had
to
start
from
summer,
so
we
did
not
start
from
scratch,
so
the
we
we
based
the
we
based
this
on
the
nft
exam
that
is
provided
by
near,
although
yeah,
it's
a
pretty
old
one.
So
but
it
has
like
it
had
the
most
basic
functionalities,
so
yeah
each
hd
will
have,
of
course,
its
metadata.
B
B
So
these
are
like
example,
placeholders
for
like
what
it
can
be
like
so
some
article
about
something
it's
the
article
name.
B
He
can
like
index
his
articles
yeah
and
then
upload
some
content
after
that,
so
yeah,
the
journalist
will
be
like
the
admin
of
this
contract
and
for
that
he
has
some
special
privileges
like
so
the
idea
was
always
that
we
want
to
guarantee
that
journalists
will
be
able
to
have
access
to
their
funding
because
of
their
work
and
for
that
you'll
be
able
to
set
a
price
for
this
nft
yeah
with
the
set
price
function.
B
So
here's
the
set
price
function
that
only
him
is
able
to
call-
and
this
would
be
like
the
base
price
for
each
article,
and
he
also
has
another
way
to
monetize
his
work,
which
is
with
the
publisher
fee.
B
So
let's
say
for
now
that
newspapers
have
to
get
their
articles
from
different
journalists
and
for
a
newspaper
or
for
a
news
aggregator
to
be
able
to
to
buy
these
entities,
you
will
have
to
pay
first,
a
publisher
fee
which
also
only
the
the
admin
will
be
able
to
set
so
yeah.
This
is
simple:
getter
function.
We
can
check
the
values,
for
example,.
B
So
yeah
the
journalists
will
be
able
to
change
the
publisher
fee,
the
price,
but
there
are
also
other
things
that
are
done
only
one
time
after
the
initialization
of
the
contract,
for
example,
the
admin,
so
the
journalist
publishes
his
contract
and
then
he
can
choose
an
admin
for
for
the
management
of
the
fees
and
the
prices.
B
He
can
also
set
a
maximum
supply,
and
I
think
it
was
very
important
that
this
is
also
set
only
one
time
after
the
contract
deployment,
because
many
articles
can
derive
their
value
from
their
rarity.
So
it
wouldn't
be
very
ethical
if
he
announces
that
he
have
100
copies
and
then
increases
that
price
later
to
a
thousand
copies
before
it
goes
well.
B
B
And
after
that
now
we
have
some.
We
have
the
publishers,
so
each
publisher
after
he
pays
his
publisher
fee.
He
will
have
to.
He
will
be
added
to
some
a
publisher
map
and
after
that
he
is
able
to
buy
the
articles.
So
it's
it
will
be
like
a
white
list
for
publishers
to
be
able
to
buy
the
articles
yeah
and
with
that
we
can
call
the
by
articles
function.
B
And
it
takes
like
a
payment
in
here
and
he
can
specify
the
publisher
can
specify
the
amount
he
wants
to
buy.
So
if
he
wants
to
buy
10-
and
there
is
a
base
price
of
three
up
to
her
article-
then
his
payment
of
course
has
to
be
more
than
the
more
than
the
total
amount
and,
of
course,
after
after
all,
checks
are
passed.
He
will
be
any
excess.
B
Payment
will
be
refunded
back
yeah,
and
in
this
line
that
every
payment
will
be
directed
directly
to
yeah,
it
will
be
transferred
directly
to
the
admin.
A
A
B
B
A
A
So
so
you
don't
need
the
backslashes
by
the
way,
if,
if
you're
putting
this
into,
you
can
ignore
all
those
backslashes
just
with
the
single
quotes.
A
B
Yeah
yeah,
I
had
this
problem
since
quite
some
time
and
I
was
always
wondering
why
yeah.
B
B
Yeah,
so,
as
I
was
saying,
only
publishers
will
be.
I
will
be
able
to
buy
the
articles.
So
if
I
buy
the
article
right
now,
I
shouldn't
be
able
to
do.
B
It
and
by
the
way,
also
I'm
not
able
to
buy
the
article
for
myself,
but
I
will
be
able
to
buy
the
article
for
some
publisher.
So
we
did
that.
B
B
B
B
A
B
B
B
Yeah,
so
that's
it
and
of
course
I
should
be
refunded.
Also
the
the
correct
amount
back.