Closed daijun168 closed 2 years ago
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!!!
Thanks for your reply.This is my first time studying Solana, and there are many things I don't understand
------------------ 原始邮件 ------------------ 发件人: "portto/solana-go-sdk" @.>; 发送时间: 2021年10月19日(星期二) 晚上9:15 @.>; @.**@.>; 主题: Re: [portto/solana-go-sdk] transfer (Issue #27)
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!!!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
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.
I prefer golang! Transfer has feePayer and FROM, from isn't payer?And there was an error in the transfer:
------------------ 原始邮件 ------------------ 发件人: "portto/solana-go-sdk" @.>; 发送时间: 2021年10月19日(星期二) 晚上9:42 @.>; @.**@.>; 主题: Re: [portto/solana-go-sdk] transfer (Issue #27)
cool!
if you don't mind 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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
I prefer golang! Transfer has feePayer and FROM, from isn't payer?And there was an error in the transfer: 2021/10/20 15:25:22 failed to send tx, err: rpc response error: {"code":-32002,"message":"Transaction simulation failed: Attempt to debit an account but found no record of a prior credit .","data":{"accounts":null,"err":"AccountNotFound","logs":[]}}
------------------ 原始邮件 ------------------ 发件人: "portto/solana-go-sdk" @.>; 发送时间: 2021年10月19日(星期二) 晚上9:42 @.>; @.**@.>; 主题: Re: [portto/solana-go-sdk] transfer (Issue #27)
cool!
if you don't mind 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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
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)
OK,Thanks,I am studying the latest release,Is there a group where i can communicate?
------------------ 原始邮件 ------------------ 发件人: "portto/solana-go-sdk" @.>; 发送时间: 2021年10月20日(星期三) 下午3:34 @.>; @.**@.>; 主题: Re: [portto/solana-go-sdk] transfer (Issue #27)
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)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
When "from" and "feePayer" coexist, "from" pays fees, and "feePayer" pays sol?
------------------ 原始邮件 ------------------ 发件人: "portto/solana-go-sdk" @.>; 发送时间: 2021年10月20日(星期三) 下午3:34 @.>; @.**@.>; 主题: Re: [portto/solana-go-sdk] transfer (Issue #27)
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)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
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.
Is there any difference between the types.NewMessage and types.CreateRawTransactionParam