Reading Assignment - EOS Basics

Welcome to the discussion about the reading assignment about EOS Basics.

Leave your answers to the questions below in this thread. If you have any questions or you want to discuss something connected to the assignment feel free to do it in this thread as well, but please keep everything to the topic.

[Questions has been updated since the start of this topic]

  1. What’s an action?
  2. What’s the difference between explicit actions and implicit (or inline) actions?
  3. What’s the difference between an action and a transaction?
  4. What is a transaction receipt and what does it mean to receive it?

1. What’s the difference between an action and a transaction? Actions are how a contract and an account communicate, where an action itself only represents a single operation and a transaction is a collection of one or more actions.

2. What is a transaction receipt and what does it mean to receive it? When a transaction is complete, a transaction receipt is created in the form of a hash. This only indicates that the node that you are communicating with has accepted the transaction, however it does not mean that it has been confirmed on the blockchain.

3. What is receiver, code and action? When an action occurs, the EOSIO software creates a new action “apply” context specifically for that action. This lets nodes on the network that are designated to work on this contract know to process the action. Within this context is the context identification information, which can be referred to as the receiver, code and action:

  • receiver is the account that is currently processing the action.
  • code is the account that authorised the contract.
  • action is the ID of the currently running action.

4. What is the ABI files used for? An ABI file lets an application know how it can interact with a binary representation of the contract it was generated from.

5 Likes

What’s the difference between an action and a transaction?
Action = 1 operation only
Transaction = collection of 1 or more action. For the transaction to succeed all Action(s) must be successful.

What is a transaction receipt and what does it mean to receive it?
It is the block number in which the transaction hash is included.
That means that the first node that executed the transaction, succeeded in running the code of each action(s) from the transaction without errors. Then the remaining Block Producers must also run the transaction (which will most likely be also ok).
Then the transaction hash is included in the block which confirms for good the success of the transaction.

What is receiver, code and action?
They define the context in which each individual action is handled.
Each action is processed by the apply method. When this method is invoked, it creates a context that contains the receiver, code an action id.
Receiver is the account processing the action. WHO
Code is the account that authorized the contract. WHOSE
Action is the ID of the currently running action. ID
i.e.: from decentwitter.io a message is sent to the node. the message contains transaction(s). the transaction

What is the ABI files used for?
it allows users and developers to use JSON to interact with contracts.

1 Like
  1. action = a single operation, transaction = collection of one or more actions.
  2. a transaction receipt is generated when a transaction is completed. This only means that a node accepted it without an error and a high probability for other nodes to accept it, too. However it does not mean that the transaction is confirmed.
  3. for every action the EOS software creates some sort of context for that specific action: receiver, code and action.
    receiver is the account that is currently processing the action. code is the account that authorized the contract. action is the ID of the currently running action

1. action = single operation, transaction = collection of one or more actions

2. A transaction receipt is generated on completion of a transaction. Receiving a transaction hash means that the node accepted it without an error. However, this does not mean that the transaction has been confirmed.

3. receiver, code and action are used as context identification information. receiver is the account that is currently processing the action. code is the account that authorized the contract. action is the ID of the currently running action.

4. The Application Binary Interface (ABI) is a JSON-based description on how to convert user actions between their JSON and Binary representations. The ABI files describe how users can interact with your contract via JSON.

3 Likes
  1. What’s the difference between an action and a transaction?

An action is a unity of code to be executed inside a transaction. A transaction is a set of one or more actions which will execute or fail completely. A transaction cannot execute partially.

  1. What is a transaction receipt and what does it mean to receive it?

It’s a confirmation token that means that the block producer received the transaction and that it will be evaluated for the execution, in order to be queried asynchronously about its execution or failure.

  1. What is receiver, code and action?

Receiver is the context account that will run the contract with its resources. Code/action is the reference for the account/action that owns the action assembly to be executed.

  1. What is the ABI files used for?

To describe and serves as an interface, through json, to the binary structure of the contract/persisted data.

2 Likes

1. What’s the difference between an action and a transaction?
action: single operation, transaction: a collection of one or more actions

2. What is a transaction receipt and what does it mean to receive it?
a transaction hash on completion of the transaction. It means that one node accepted the transaction without error.

3. What is receiver, code and action?
context identification information of an action
receiver: account currently processing the action
code: account authorizing the contract
action: ID of the currently cunning action

4. What is the ABI files used for?
ABI: Application Binary Interface. It describes how to convert user actions between their JSON and binary representations and to convert the database state from/to JSON. Developers and users will be able to interact with our contract via JSON (see https://developers.eos.io/eosio-cpp/docs/file-structure, abi section).

1 Like
  1. An action represents a single operation, whereas a transaction is a collection of one or more actions.
  2. When transaction receipt is generated We are sure that node accepted transaction without error but it doesnt’t mean that it has been confirmed.
  3. Receiver is the account that is currently processing the action.
1 Like
  1. Actions are used to interact with a smart contract. A transaction may hold multiple or single actions for the contract where each action is for a single operation.
  2. A transaction receipt is received when a transaction is completed. A transaction hash means that node accepted it without error.
  3. Receiver: The account which is currently proccessing trancation
    Code: Account that authorized contract.
    Action: ID of currently running action.
  4. ABI is used for interacting with applcation on the assembly level.
2 Likes

1. What’s the difference between an action and a transaction?
An action represents a single operation, whereas a transaction is a collection of one or more actions.
2. What is a transaction receipt and what does it mean to receive it?
A transaction receipt is issued upon completion of a transaction. That means that the node accepted the transaction without error. It does not mean that the transaction has been confirmed.
3. What is receiver, code and action?
They are context identificators.
Receiver is the account currently processing the action.
Code is the account that authorized the contract.
Action is the ID of the currently running action

1 Like

1. What’s the difference between an action and a transaction?
Action - Single operation.
Transaction - Collections of one or more actions.

2. What is a transaction receipt and what does it mean to receive it?
Transaction receipt is generated when transaction is complete. Receiving the receipt means that node has accepted the transaction but that doesn’t mean that the transaction has been confirmed.

3. What is receiver, code and action?
receiver - is the account that is currently processing the action.
code - is the account that authorized the contract.
action - is the ID of the currently running action.

1 Like
  1. An action is a single operation. A transaction is a collection of one or more actions.
  2. A transaction receipt is a hash code that gets received. It does not represent that the transaction has been confirmed. It only means that the node had accepted it without error.
  3. Each node gets a copy and runs the contracts on the network and there are two “roles” that they could each play for the contracts. A receiver is the node which does that actual work of the contract, while the code node is busy validating the transaction blocks. Action is the ID of the currently running action.
1 Like

What’s the difference between an action and a transaction?

An action represents a single operation, whereas a transaction is a collection of one or more actions.

What is a transaction receipt and what does it mean to receive it?

Receiving a transaction hash(form of the receipt) does not mean that the transaction has been confirmed, it only means that the node accepted it without error, which also means that there is a high probability other producers will accept it.

What is receiver , code and action ?

receiver is the account that is currently processing the action. code is the account that authorized the contract. action is the ID of the currently running action

What is the ABI files used for?

The Application Binary Interface (ABI) is a JSON-based description on how to convert user actions between their JSON and Binary representations.

2 Likes

What’s the difference between an action and a transaction?
Action : Single operation
Transaction : A group/collection of actions that require all to succeed.

What is a transaction receipt and what does it mean to receive it?
That node has accepted the transaction (But NOT confirmed it).

What is receiver, code and action?
receiver : who (account) is processing the action.
code: who (account) authorized the contract.
action : the ID of the currently running action.

What is the ABI files used for?
JSON interface to the binary structure of the contract/persisted data.

1 Like
  1. What’s the difference between an action and a transaction?
    an action represents a single operation but transaction is a collection of one or many actions

  2. What is a transaction receipt and what does it mean to receive it?
    a transaction receipt confirms that the node accepted it without error
    it means than the node accepted it without error which means that there is a high probability that other nodes will accept

  3. What is receiver, code and action?
    receiver is the account that is currently processing the action
    code is the account that authorized the contract
    action is the id of the currently running action

  4. What is the ABI files used for?
    abi stands for Application Binary Interface, it is used for converting user actions between their JSON and binary representations, it describes how to convert the database to/from JSON so developers will be able to interact with your contract seemlessly via JSON

1 Like

What’s the difference between an action and a transaction?

  • Action is the representation of a single operation whilst a Transaction
    is a collection of one or more actions.

What is a transaction receipt and what does it mean to receive it?

  • Once a transaction has completed ( all of its actions succeeded ) a transaction
    receipt is generated.

What is receiver, code and action?

  • Nodes in the blockchain are performing different roles and such information is provided in the action context as: receiver, code, action. Receiver is the account that is currently processing the action. Code is the account that authorized the contract. Action is the ID of the currently running action.

What is the ABI files used for?

  • API/GraphQL equivalent for smart contracts. Help to understand how to talk with them.
1 Like

1.What’s the difference between an action and a transaction?
An action represents a single operation (like a move), while a transaction can be a collection of actions.

2.What is a transaction receipt and what does it mean to receive it?
A transaction receipt is a hash that is sent back when a transaction has been received by a node without error. Note that this does not mean the transaction is confirmed on-chain, but it means that the likelihood of being accepted by other producers is high. There way to confirm a transaction would be to see it in the transaction history with the block number.

3.What is receiver, code and action?
Similar to Ethereum, every node in the EOSIO network is gets a copy and runs every action in every contract. Different nodes carry out different functions, with some doing the actual work of the contract, while others are processing in order to prove the validity of the transaction blocks. receiver, code and action are ways of identifying which context (validating or doing actual work) the contract is running under. Receiver is the account currently processing the action, while code is the account that authorized the contract, and lastly, action is the ID of the currently running action.

4. What is the ABI files used for?
The Application Binary Interface (ABI) serves as an interface, so that users can interact with the EOS contract via JSON.

1 Like
  1. An action represents a single operations whereas a transaction is a collection of one or more actions.

  2. A transaction receipt is a hash created upon completion of a transaction. It only means the node accepted it without error, which is not a guarantee it will go through but does make it highly likely it will be picked up by other producers.

  3. “Receiver” is the account that is currently processing the action. “Code” is the account that authorized the contract. “Action” is the ID of the currently running action.

  4. ABI files are used to convert from JSON to binary representations.

1 Like
  • What’s the difference between an action and a transaction? An action represents a single operation, whereas a transaction is a collection of one or more actions. A contract and an account communicate in the form of actions. Actions can be sent individually, or in combined form if they are intended to be executed as a whole…

  • What is a transaction receipt and what does it mean to receive it?On completion of the transaction, a transaction receipt is generated. This receipt takes the form a hash. Receiving a transaction hash does not mean that the transaction has been confirmed, it only means that the node accepted it without error, which also means that there is a high probability other producers will accept it.

  • What is receiver, code and action? Context identification information is provided in the action context, receiver , code , action . receiver is the account that is currently processing the action. code is the account that authorized the contract. action is the ID of the currently running action.

  • What is the ABI files used for?An ABI file lets an application know how it can interact with a binary representation of the contract it was generated from.

1 Like
  1. An Action is a single operation while a Transaction is one or more Actions.
  2. A Transaction Receipt is a hash string that indicates that the node accepted the Transaction without error. Receiving it does not mean that it executed. If it executes, there will be a block number next to it in the Transaction History.
  3. Receiver is the Account that processes a Transaction. Code is the Account that Authorized the Transaction. Action is the ID of the current running Action.
  4. ABI is a file that allows any client or interface to interact with a contract, even to create a GUI.
1 Like