Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need rust toolkit, are there plans to make rust toolkit? #126

Open
Anarchism-Noob opened this issue May 7, 2024 · 9 comments
Open

I need rust toolkit, are there plans to make rust toolkit? #126

Anarchism-Noob opened this issue May 7, 2024 · 9 comments

Comments

@Anarchism-Noob
Copy link

I'm sorry, I couldn't find anywhere else to submit this request.

@endiaoekoe
Copy link
Contributor

hi @Anarchism-Noob
Currently, there is only java-version SDK for java-tron; in the short term, seems no exact plan to develop the rust version SDK.
but it depends. if the community has more Consensus on providing the rust version toolkit. which may have a plan for this.

@Anarchism-Noob
Copy link
Author

hi @Anarchism-Noob Currently, there is only java-version SDK for java-tron; in the short term, seems no exact plan to develop the rust version SDK. but it depends. if the community has more Consensus on providing the rust version toolkit. which may have a plan for this.

I'm currently writing a web project using the Salvo-rs framework, and for security reasons I need to generate bills using TRC-20. This is similar to the Web 3 payments for the https://axum.rs/subject/mall project. How do I fulfill this requirement now without tron-rs?

@endiaoekoe
Copy link
Contributor

hi @Anarchism-Noob Currently, there is only java-version SDK for java-tron; in the short term, seems no exact plan to develop the rust version SDK. but it depends. if the community has more Consensus on providing the rust version toolkit. which may have a plan for this.

I'm currently writing a web project using the Salvo-rs framework, and for security reasons I need to generate bills using TRC-20. This is similar to the Web 3 payments for the https://axum.rs/subject/mall project. How do I fulfill this requirement now without tron-rs?

If I understand your comments correctly. your requirements include interacting with java-tron to fulfill features like send trc-20 txs(eg: USDT txs), query tx/block result,s and so on.
I think there are 2 ways to try.
1.Tron provides a complete set of http APIs, which you can use this APIs to fulfill your requirements.
As we know, the Http JSON APIs are not tied to some specific language, which means you can use any language to call this API
check the details here:https://developers.tron.network/reference/full-node-api-overview
2. trident uses grpc-java to integrate with java-tron grpc endpoints. You can use the rust version grpc SDK like hyperium/tonic to achieve the same result as trident-java does. You can find the proto files in the project.

@Anarchism-Noob
Copy link
Author

hi @Anarchism-Noob Currently, there is only java-version SDK for java-tron; in the short term, seems no exact plan to develop the rust version SDK. but it depends. if the community has more Consensus on providing the rust version toolkit. which may have a plan for this.

I'm currently writing a web project using the Salvo-rs framework, and for security reasons I need to generate bills using TRC-20. This is similar to the Web 3 payments for the https://axum.rs/subject/mall project. How do I fulfill this requirement now without tron-rs?

If I understand your comments correctly. your requirements include interacting with java-tron to fulfill features like send trc-20 txs(eg: USDT txs), query tx/block result,s and so on. I think there are 2 ways to try. 1.Tron provides a complete set of http APIs, which you can use this APIs to fulfill your requirements. As we know, the Http JSON APIs are not tied to some specific language, which means you can use any language to call this API check the details here:https://developers.tron.network/reference/full-node-api-overview 2. trident uses grpc-java to integrate with java-tron grpc endpoints. You can use the rust version grpc SDK like hyperium/tonic to achieve the same result as trident-java does. You can find the proto files in the project.

Thanks for your reply, I think I will try both options. But my English is very poor, do you have any plans to restore Chinese Docs? Simplified Chinese or Traditional Chinese would be fine

@Anarchism-Noob
Copy link
Author

hi @Anarchism-Noob Currently, there is only java-version SDK for java-tron; in the short term, seems no exact plan to develop the rust version SDK. but it depends. if the community has more Consensus on providing the rust version toolkit. which may have a plan for this.

I'm currently writing a web project using the Salvo-rs framework, and for security reasons I need to generate bills using TRC-20. This is similar to the Web 3 payments for the https://axum.rs/subject/mall project. How do I fulfill this requirement now without tron-rs?

If I understand your comments correctly. your requirements include interacting with java-tron to fulfill features like send trc-20 txs(eg: USDT txs), query tx/block result,s and so on. I think there are 2 ways to try. 1.Tron provides a complete set of http APIs, which you can use this APIs to fulfill your requirements. As we know, the Http JSON APIs are not tied to some specific language, which means you can use any language to call this API check the details here:https://developers.tron.network/reference/full-node-api-overview 2. trident uses grpc-java to integrate with java-tron grpc endpoints. You can use the rust version grpc SDK like hyperium/tonic to achieve the same result as trident-java does. You can find the proto files in the project.

One more thing, can I use QR code on the payment page if I use Http JSON API solution? Just like you can use QR code when i buy a game on Steam and choose Alipay payment.

@endiaoekoe
Copy link
Contributor

you can use popular qrcode lib like nayuki/QR-Code-generator to transfer the trc-20 address to qr code ;
which may look like this:

import QRCodeLibrary

function generateQRCode(trc20Address):
    qr = QRCodeLibrary.createQRCode(trc20Address)
    return qr

trc20Address = "Your TRC-20 Address"
generatedQRCode = generateQRCode(trc20Address)
// show the qrcode to users

@Anarchism-Noob
Copy link
Author

you can use popular qrcode lib like nayuki/QR-Code-generator to transfer the trc-20 address to qr code ; which may look like this:

import QRCodeLibrary

function generateQRCode(trc20Address):
    qr = QRCodeLibrary.createQRCode(trc20Address)
    return qr

trc20Address = "Your TRC-20 Address"
generatedQRCode = generateQRCode(trc20Address)
// show the qrcode to users

Thank you very much for your reply. Is there any plan to restore Chinese Docs?

@endiaoekoe
Copy link
Contributor

you can use popular qrcode lib like nayuki/QR-Code-generator to transfer the trc-20 address to qr code ; which may look like this:

import QRCodeLibrary

function generateQRCode(trc20Address):
    qr = QRCodeLibrary.createQRCode(trc20Address)
    return qr

trc20Address = "Your TRC-20 Address"
generatedQRCode = generateQRCode(trc20Address)
// show the qrcode to users

Thank you very much for your reply. Is there any plan to restore Chinese Docs?

I just checked the latest updates/news/announcements. also, I just reached out to their support team. seems like Tron has no plan to release the chinese version doc.

@Anarchism-Noob
Copy link
Author

you can use popular qrcode lib like nayuki/QR-Code-generator to transfer the trc-20 address to qr code ; which may look like this:

import QRCodeLibrary

function generateQRCode(trc20Address):
    qr = QRCodeLibrary.createQRCode(trc20Address)
    return qr

trc20Address = "Your TRC-20 Address"
generatedQRCode = generateQRCode(trc20Address)
// show the qrcode to users

Thank you very much for your reply. Is there any plan to restore Chinese Docs?

I just checked the latest updates/news/announcements. also, I just reached out to their support team. seems like Tron has no plan to release the chinese version doc.

Oh, this is very sad news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants