bayowulf --> Hello sers. I’m taking data from NEAR Explorer and NEAR’s mainnet analytics. If you can help me just a few basic questions, that would be awesome!
- What are the differences between ingoing and outgoing transactions? ingoing + outgoing txs = total number of tx, right?
2)How are daily_receipts_per_contract different from ingoing and outgoing txns?
3)How do accounts relate to deployed contracts? How can we verify which accounts belong to which projects?
I’m trying to understand how many txs and how much gas usage comes from each project. I want to create a database for NEAR.
bayowulf --> Sorry to tag you ser, any chance you know about these things? <@!Benji | NEAR>
bayowulf --> <@!Dorian | NEAR> My question is probably very easy to answer for you, so I would really appreciate it if you can take a look at it, especially the 1st and 2nd ones. Thanks a lot 🙏
Dorian | NEAR --> 1) What are the differences between ingoing and outgoing transactions? ingoing + outgoing txs = total number of tx, right?
outgoing ( are tx sent out by the account, like if I’m using my account example.near to call a method on the contract on contract.near that’s one transaction)
ingoing (Calls being made on my account that has a contract deployed onto it)
2)How are daily_receipts_per_contract different from ingoing and outgoing txns?
( each transaction has a receipt to it, I’m not finding where you are seeing this but I’m guessing just the total transactions made that day)
3)How do accounts relate to deployed contracts? How can we verify which accounts belong to which projects?
(every account is technically a smart contract. Each account starts off as a smart contract with no code on it. When you deploy a contract you are deploying code in the form of a .wasm file onto that account. So now that account is a smart contract with code on it. Data and information tied to that account are stored in that account’s state on chain.
There are a few ways you can find out what account is deployed to what project. you can use the explorer to see which account your transactions have been called on. If the project is open source they may have the account name in their code somewhere unless it’s saved as an environment variable. probably my default way would be to check the explorer
bayowulf --> Thanks for the detailed answer! These are awesome!!!