Focus mode

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


Patika Plus Banner

Yazılım Kariyerinde İlerlemeni Hızlandıracak Eğitimler

Kendi kendine yazılım öğrenirken zorlanıyor, takıldığın noktalarda bir mentore mi ihtiyaç duyuyorsun? Patika+ programlarımız ile 4-8 aylık yoğun eğitim kamplarına katıl, proje tabanlı canlı dersler ve sana özel hazırlanmış eğitimlerle gereken tüm yetenekleri kazan, iş hayatına başla!

Comments

You need to enroll in the course to be able to comment!