Odak modu

NEAR Developer Course

Keys

FunctionCall Access Keys

FunctionCall is a common access key that lets the holder call a function on only 1 contract and only up to a limited number of times.

Every time you login to a website with your NEAR Wallet, you are adding a new FunctionCall access key to your account.


FullAccess Keys

A rare and powerful access key that lets the holder do anything they want to do with the account.

Having a FullAccess key on the account means you own the account. Keep your FullAccess key safe!

figures

figures

Invoking a contract method from your dApp roughly follows these steps:

  • Your dApp uses near-api-js to compose and sign the transaction that represents a FunctionCall transaction
  • The transaction is sent to the NEAR platform through the RPC interface which validates and verifies the transaction before routing it (based on the contract account) to the correct shard (since each shard is being followed by at least one physical node in the network)
  • The runtime layer wakes up a Wasm virtual machine
  • The VM loads the contract code to invoke the function identified in the transaction
  • Reads and writes to state storage as needed
  • Then returns the result of the function call and spins down the virtual machine
  • The blockchain layer routes the result back through the RPC interface to your dApp


left-disk

Yazılım Kariyerinde İlerlemeni Hızlandıracak Programlar

Patika+ programlarımız ile 4-8 aylık yoğun yazılım kamplarına katıl, temel bilgilerden başlayarak kapsamlı bilgiler edin, yazılım kariyerine başla!

right-cube

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!