Giter Club home page Giter Club logo

challenge4-solana-break's Introduction

challenge4-solana-break

Jot down the various differences between the way transactions are created in the Hello World example vs the Break example. Explore the accounts being used in the repository as well and create a brief - short write-up with your observations.

Observations

Both programs have almost the same flow for creating transactions and accounts. Of course, the Break example is built more robust and secure than Hello World with the handling of connections, blockhash, keypairs, and such.

The key differences I have observed is that in the Hello World example transactions are created using TransactionInstruction either via SystemProgram.createAccountWithSeed or a new instance of it then processed using sendAndConfirmTransaction while in the Break example transactions are created by CreateTransactionRPC via createTransaction then processed by WebSocket via send and Dispatch.

For Accounts, they are used almost the same. In Hello World, it is derived from payer public key and seed provided then used as parameter for the program. In Break, it is being handled by TransactionDetails to be used for the program as well.

challenge4-solana-break's People

Contributors

dependabot[bot] avatar jstarry avatar igorburak-zenio avatar evgenyshvingelsky avatar wargot-by avatar mvines avatar rmshea avatar joeaba avatar chaitanyapotti avatar darrensapalo avatar youjustdontknow avatar ojshua avatar ryan-shea avatar memoriesadrift avatar criesofcarrots avatar adrian-justo avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.