Git Product home page Git Product logo

Comments (9)

yihau avatar yihau commented on August 20, 2024

a tx = many signatures + a message

types.NewMessage will return a message

types.CreateRawTransactionParam will return a byte array which is made by serializing tx.

BTW in next major version changing, I will remove types.CreateRawTransactionParam and its related function.

so maybe you can take a look at types.NewTransaction first or wait for I finish the docs!!!

from solana-go-sdk.

daijun168 avatar daijun168 commented on August 20, 2024

from solana-go-sdk.

yihau avatar yihau commented on August 20, 2024

cool!

if you don't mind to read js code. there is a web3 project, you can take a look too.

https://github.com/yihau/solana-web3-demo/blob/main/README.en.md

feel free to open another issue to ask me any questions about solana.

from solana-go-sdk.

daijun168 avatar daijun168 commented on August 20, 2024

from solana-go-sdk.

daijun168 avatar daijun168 commented on August 20, 2024

from solana-go-sdk.

yihau avatar yihau commented on August 20, 2024

in solana, from and payer can be different address but also you can set them in the same.
Transaction simulation failed: Attempt to debit an account but found no record of a prior credit => this error usually happened when your account don't have any SOL and you want to charge to it.
check your from and feePayer has enough SOL. (you can use airdrop to get some)

from solana-go-sdk.

daijun168 avatar daijun168 commented on August 20, 2024

from solana-go-sdk.

daijun168 avatar daijun168 commented on August 20, 2024

from solana-go-sdk.

yihau avatar yihau commented on August 20, 2024

OK,Thanks,I am studying the latest release,Is there a group where i can communicate?

if you have any solana's problem, you can also ask here
https://discord.com/invite/uNHzdyZRMB
this is solana official discord.

When "from" and "feePayer" coexist, "from" pays fees, and "feePayer" pays sol?

actually feePayer pay the transaction fee, and from will be charged amount which you want to transfer. both of them are sol.

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.