The Law Offices of NEAR

    Q7. Provide your best assessment of the number of smart contracts deployed on NEAR and clearly outline your methodology (after all, contract lawyers love clearly specified terms). Visualize the number of new smart contracts deployed over time over a time period of your choosing. What are the top 5 new smart contracts interacted in that period of your choosing?

    db_img

    Method :

    Let's start with how contracts are created in NEAR. It seems that the usual procedure in creating contracts in NEAR consists of 3 parts:

    1. Create Account : At this stage, a wallet (account) is created in the NEAR network, which can have a .NEAR domain, such as Flipside.near (Sample TX)
    2. Create a Sub Account (contract.Flipside.near) : Usually, a sub-account is created for each contract so that their management is easier and coherent. (Sample TX)
    3. Deploy Contract : At this stage, the contract is deployed on that subdomain with a transaction, in this transaction tx_signer and tx_receiver are the subdomain itself.(Sample TX) ()

    You can click on this link to create a trial contract on the NEAR testnet and see the steps.

    So it’s seems the 'DeployContract' action to be the best choice for finding contracts in the Flipside database.


    Issues and Workarounds :

    • the problem that exists is that in the NEAR blockchain is for each contract update, a DeployContract transaction is performed again on the subdomain, which is why it is necessary that these transactions are not considered as creating a new contract (Distinct).
    • my investigations showed that on some days, a large number of new contract creations are related to the mintbase.io platform (a decentralized NFT buying and selling platform on NEAR), which creates a new contract with each store created on the site (Sample TX) , so to increase the accuracy of my analysis, I did not count them.

    Analyzed time period: from the beginning of 2022 onwards.

    1.Number of New Smart Contracts deployed over (2022) :

    As the chart below shows, the number of new contracts deployed on the NEAR blockchain has been increasing daily since the beginning of 2022, reaching over 100 new contracts on March 28 and July 6. Also, the total number of new deployed contracts has reached 5660 since the beginning of 2022.

    Loading...
    Loading...

    2.What are the top 5 new smart contracts interacted in that period of your choosing.?

    The 5 new contracts that have been created in 2022 and have been of most interest are:

    1. v2.nearapps.near : Have 3.5M TX

    2. analytics.nearapps.near : Have 1.5M TX

    3. client.bridge.near : Have 990K TX

    4. berryclub.ek.near : Have 468K TX

    5. usn : Have 377K TX

    Loading...
    Loading...

    3.Which accounts have deployed the most contracts?

    In the chart below, 50 accounts with the most contracts in NEAR are identified , crowdforces.near (NEAR Crowd allows users to earn Near by performing simple tasks) is at the top with the creation of 1124 new contracts.

    Loading...
    Loading...

    Conclusions :

    1. It is clear that the amount of creating new contracts has increased over time since the beginning of 2022.
    2. Top 5 most interacted new smart contracts since the beginning of 2022 are :
    ContractTransactionsFees
    v2.nearapps.near35011189939.314513
    analytics.nearapps.near1560192810.3330095
    client.bridge.near9926216311.526591
    berryclub.ek.near468608812.0983788
    usn3772371081.334572

    2.1. How were the 5 contracts with more interaction in terms of the amount of fee paid by the users?

    1. v2.nearapps.near : 9,939 NEAR

    2. client.bridge.near : 6,311 NEAR

    3. usn : 1,081 NEAR

    4. berryclub.ek.near : 812 NEAR

    5. analytics.nearapps.near : 810 NEAR

      \