GithubHelp home page GithubHelp logo

Comments (11)

Nithsua avatar Nithsua commented on July 17, 2024 1

i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ?

Are you using anchor?

Can you explain how can I do the same with anchor?

Found anchor-go

from solana-go.

gagliardetto avatar gagliardetto commented on July 17, 2024 1

i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ?

Are you using anchor?

Can you explain how can I do the same with anchor?

Found anchor-go

Yep! That's the way

from solana-go.

gagliardetto avatar gagliardetto commented on July 17, 2024

Solana programs (a.k.a. "smart contracts") can be called via transactions; each transaction contains one or more instructions (which are the parameters of the smart contract call).

An example: https://github.com/gagliardetto/solana-go#transfer-sol-from-one-wallet-to-another-wallet

from solana-go.

panchuprodhan avatar panchuprodhan commented on July 17, 2024

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

from solana-go.

danvinhe avatar danvinhe commented on July 17, 2024

The transaction information needs to be assembled and sent after signature
An example: https://github.com/gagliardetto/solana-go#transfer-sol-from-one-wallet-to-another-wallet

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

from solana-go.

sunspirit9999 avatar sunspirit9999 commented on July 17, 2024

i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ?

from solana-go.

gagliardetto avatar gagliardetto commented on July 17, 2024

i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ?

Are you using anchor?

from solana-go.

sunspirit9999 avatar sunspirit9999 commented on July 17, 2024

from solana-go.

gagliardetto avatar gagliardetto commented on July 17, 2024

solana-go is not equipped to function with solang or solidity contracts deployed on Solana.

From the https://github.com/hyperledger-labs/solang docs, I see there's some abstraction and ABI. There's currently no support for that in solana-go, nor plans to implement it in the future.


If you figure out how the encoding is done, you could write a library.

from solana-go.

Nithsua avatar Nithsua commented on July 17, 2024

i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ?

Are you using anchor?

Can you explain how can I do the same with anchor?

from solana-go.

KunPengRen avatar KunPengRen commented on July 17, 2024

Can Solana-go support call the smart contract program developed by Anchor now? Such as call one function?

from solana-go.

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.