Git Product home page Git Product logo

Comments (7)

yihau avatar yihau commented on August 20, 2024 1

Oh. I think I should add some examples for interacting with custom program!

from solana-go-sdk.

leecarney avatar leecarney commented on August 20, 2024 1

Oh. I think I should add some examples for interacting with custom program!

That would be amazing thanks.

from solana-go-sdk.

yihau avatar yihau commented on August 20, 2024

sure. It depends which program you are interacting with.
The main idea is to compose transaction if you want to call smart contract (in solana we called it program).
FYI

A transaction = many signatures + a message
A message = many instructions + recent blockhash

you can treat every instruction equals a function in the program.

you can take a look at

https://github.com/solana-labs/example-helloworld
https://dev.to/cogoo/solana-how-to-send-custom-instructions-via-instruction-data-4g9g

to learn how to compose your own instruciton.

from solana-go-sdk.

panchuprodhan avatar panchuprodhan commented on August 20, 2024

How do I call the Hello World function in rust from go-client? https://github.com/solana-labs/example-helloworld

from solana-go-sdk.

panchuprodhan avatar panchuprodhan commented on August 20, 2024

Yes, that should be helpful!

from solana-go-sdk.

KunPengRen avatar KunPengRen commented on August 20, 2024

Hi, is there anyone example to call a custom program available now?
Or can I call a smart contract directly developed by anchor framework?

from solana-go-sdk.

yihau avatar yihau commented on August 20, 2024

added three pages for basic concept

https://portto.github.io/solana-go-sdk/programs/101/hello.html
https://portto.github.io/solana-go-sdk/programs/101/accounts.html
https://portto.github.io/solana-go-sdk/programs/101/data.html

from solana-go-sdk.

Related Issues (20)

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.