Reading Assignment - EOS Basics

1. **What’s the difference between an action and a transaction?
A transaction is a bunch of actions that you want to execute in 1 transaction. That means that if the transaction does not work, all actions inside that transaction will be rolled back.

2. **What is a transaction receipt and what does it mean to receive it?
A transaction receipt means that the transaction is received by the node without error.
Is does not mean that the transaction is confirmed. The receipt takes the form of a hash.

3. **What is receiver , code and action ?
These 3 components are part of the action context identification information.
receiver: the account that currently is processing the action
code: the account that authorized the contract
action: the ID of the current running action

1 Like

1. What’s the difference between an action and a transaction?
An action is a single operation where a transaction is a combination of multiple actions. All actions must be successful to get a transaction.

2. What is a transaction receipt and what does it mean to receive it?
A transaction receipt is created once a transaction has arrived at the first node and it was able to run the actions without error. The remaining Block Producers must still run the transaction without errors.

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?
The Application Binary Interface (ABI) is a JSON-based description of how to convert user actions between their JSON and Binary representations.

1 Like
  1. What’s the difference between an action and a transaction? Action represents a single operation, while transaction is a collection of one or more actions.
  2. What is a transaction receipt and what does it mean to receive it? It is a transaction hash that is generated as confirmation that the node accepted a transaction without error.
  3. What is receiver , code and action ? These are 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.
1 Like
  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?

    It means that the node accepted it without error, which also means that there is a high probability other producers will accept it.

  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. A transaction is a collection of one or more actions.

  2. A receipt is a hash that confirms that a transaction has been accepted by a node ( it does not means that the transaction has been confirmed yet ).

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.

  1. Application Binary Interface (ABI) is a JSON-based description on how to convert user actions between their JSON and Binary representations
1 Like
1. What's the difference between an action and a transaction?

An action is a single operation, whereas a transaction is a collection of one or more actions. Actions are specific “things” I can do with a contract, they “define” the contract. Contracts and accounts communicate in the form of actions. A transaction is therefore sending, from an account, one or more actions to be performed by the contract. Should a transaction fail, all actions must be rolled back.

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

A transaction receipt is takes the form of a hash. It means that a node accepted the transaction without error, indicating high probability of other producers accepting it too. It does not mean that the transaction has been confirmed.

3. What is receiver, code and action?

When a transaction is sent to EOSIO blockchain, some nodes will be actually processing the code of the contract, while others will others will be proving the validity of the transaction blocks. The action apply context is important for contracts to identify under which context they are running. Receiver is the account that is currently processing the action, code is the account that authorized the contract and action is the ID of the action currently running.

1 Like
  1. “An action represents a single operation, whereas a transaction is a collection of one or more actions.”
  2. It is 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.”
  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.”
1 Like

The difference between an action and a transaction: an action represents a single operation, whereas a transaction is a a collection of one or more actions.
a contract and an account communicate in the form of actions.

What is a transaction receipt and what idoes it mean to have received it? A transaction receipt is a hash. Receiving a trx hash does not mean that the transaction has been confirmed, it only means that the node accepted it without error which means there is a high probability that the 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.

The ABI file is a JSON-based description on how to convert user actions between their JSON and binary representations. The ABI also describes how to convert the database state to/from JSON. Once you have described your contract via an ABI, then developers and users will be able to interact w/your contract seamlessly via JSON.

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 a hash that is generated on the completion of a transaction. It means the node accepted the transaction without error; it does not mean the transaction has been confirmed.

  3. What are receiver, code and action?
    Receiver, code, and action represent context identification information: The receiver is the account currently processing the action, code is the account that authorized the contract, and action is the ID of the currently running action.

1 Like
  1. An action represents a single operation, whereas a transaction is a collection of one or more actions.
  2. On completion of the transaction, a transaction receipt is generated. This receipt takes the form of a hash. When you receive a transaction receipt it means that the node accepted it without error, which also means that there is a high probability other producers will accept it.
  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. The Application Binary Interface (ABI) is a JSON-based description on how to convert user actions between their JSON and Binary representations. The ABI also describes how to convert the database state to/from JSON.
1 Like

The difference between action and transaction is action represents 1 operation while the transaction collects more than one operation. A transaction receipt is a hash that is sent to you when a node has accepted your transaction without error. It does not mean that your transaction was complete as most people think that is what it means.

2 Likes

receiver - account currently processing the action
code - account authorising the contract
action - ID of the currently running action

1 Like

oh and …

transaction is a set of actions (that must complete within 30ms)
transaction receipt means the transaction has been accepted by the node and no errors were found + look for transaction in log along with the block number for confirmation by the 21BPs.

1 Like
  1. Actions are the base building block inside transactions. A transaction is made of one or more actions
  2. A transaction gets a receipt when accepted by the first block producer, on the first confirmation
  3. Receiver: the account processing a specific action
    Code: the account authorizing that action
    Action: that action’s ID
  4. The ABI file can be generated by the compiler, and is a description ( a map) on how to interact with the contract
1 Like
  1. What’s the difference between an action and a transaction?
    An action represents a single operation, while 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 hash that means a node accepted a transaction without error, but it is not a confirmation.

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

  4. What is the ABI files used for?
    ABI is application binary interface that describes how to convert user actions between their JSON and Binary representations.

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?
    “On completion of the transaction, a transaction receipt is generated. This receipt takes the form of 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.”
  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. What’s the difference between an action and a transaction?
an action is a single operation that you made in a contract, while a transaction is a collection of many actions that must be executed as a whole.
2. What is a transaction receipt and what does it mean to receive it?
Its a hash form that cointains the correct data of a transaction, meaning that it has been accepted into the blockchain to be produced by a BP in the next blocks.
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?
its a json-based interface that convert user actions into binary data to be used properly by a contract.

1 Like

1. What’s the difference between an action and a transaction?
An action represents a single operation, whilst a transaction represents a set of one or more actions.

2. What is a transaction receipt and what does it mean to receive it?
A transaction receipt is in form of a hash function that is generated after a transaction is completed. It represents that fact that the receiving node accepted it without an error hence a huge likelihood of being accepted by other produces. However before all other confirmations the transaction cannot be confirmed.

3. What is receiver, code and action
The receiver refers to the account currently executing the action, the code refers to the authorizing account of the contract, and the action is the ID of the action being executed.

4.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. The ABI also describes how to convert the database state to/from JSON. Once you have described your contract via an ABI then developers and users will be able to interact with your contract seamlessly via JSON.

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?
    On completion of the transaction, a transaction receipt is generated. This receipt takes the form of 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?
    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. The ABI also describes how to convert the database state to/from JSON.

1 Like
  1. What’s the difference between an action and a transaction?
    An action is 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?
    A transaction receipt is a form of hash and affirms that the node accepted the transaction without error. However, it does not confirm the actual transaction, although it is highly likely that other nodes will accept it.

  3. What is receiver, code and action?
    EOS contracts run under an action context, which is identified by the following information:
    a. receiver - the account that is currently processing the transaction
    b. code - the account that authorised the contract
    c. action - the ID of the current running contract

  4. What is the ABI files used for?
    An ABI file, (Application Binary Interface) is a JSON-like file that describes how to convert user actions between JSON and Binary representations. It also describes how to convert a database state to/from JSON. Developers and users are able to interact seamlessly with an EOS contract once it has been described via an ABI file.

1 Like