JSON RPC API中SOLANA中的交易规范文档在哪里?
我需要将服务器程序的交易提交到Solana区块链进行处理。
我的程序不是JavaScript,因此,我无法使用Web3J。
我使用JSON RPC API sendtransaction: https://docs.solana comle SendTransaction
我需要在程序中构建交易。
各种类型的交易规范的文档在哪里,例如。转移,批准,撤销等?
例如。 如何形成“转移”交易?这是什么规格?需要哪些参数及其名称和类型?
此致, configentia
I need to submit transactions from a server program to Solana blockchain for processing.
My programs is not JavaScript, therefore, I cannot use web3js.
I use the JSON RPC API sendTransaction:
https://docs.solana.com/developing/clients/jsonrpc-api#sendtransaction
I need to form the transaction in the program.
Where is the documentation for transaction specification for various types, eg. transfer, approve, revoke, etc?
Eg.
How do I form a "transfer" transaction? What's the spec for that? What parameters are required and their names and types?
Best regards,
Configentia
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须首先使用传输说明然后将其编码为字符串并在sendtransaction中发送它,
我不确定如何在没有solana软件包的情况下在本地创建签名的交易,也许您可以,但是它会更难/TS,Golang,Java,Rust,C ++
You have to create a signed transaction locally first using the transfer instruction then encode it as a string and send it in sendTransaction
I'm not sure how you can create a signed transaction locally without a solana package, maybe you can but it would be a lot harder, solana has sdks for python, js/ts, golang, java, rust, c++