\TronAPI
All URIs are relative to https://beta.usemoon.ai
CreateTronAccount
Post /tron
GetTronAccount
Get /tron/{accountName}
ListTronAccounts
Get /tron
SignTronTransaction
Post /tron/{accountName}/sign-tx
CreateTronAccount
AccountAPIResponse CreateTronAccount(ctx).Authorization(authorization).TronInput(tronInput).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiCreateTronAccountRequest struct via the builder pattern
authorization
string
tronInput
TronInput
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTronAccount
AccountAPIResponse GetTronAccount(ctx, accountName).Authorization(authorization).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiGetTronAccountRequest struct via the builder pattern
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTronAccounts
AccountAPIResponse ListTronAccounts(ctx).Authorization(authorization).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiListTronAccountsRequest struct via the builder pattern
authorization
string
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignTronTransaction
TronAPIResponse SignTronTransaction(ctx, accountName).Authorization(authorization).TronTransactionInput(tronTransactionInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiSignTronTransactionRequest struct via the builder pattern
authorization
string
tronTransactionInput | TronTransactionInput | |
Return type
TronAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]