\TronAPI
Method
HTTP request
Description
CreateTronAccount
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
tronInput := *openapiclient.NewTronInput() // TronInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TronAPI.CreateTronAccount(context.Background()).Authorization(authorization).TronInput(tronInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TronAPI.CreateTronAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateTronAccount`: AccountAPIResponse
fmt.Fprintf(os.Stdout, "Response from `TronAPI.CreateTronAccount`: %v\n", resp)
}Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
GetTronAccount
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
ListTronAccounts
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SignTronTransaction
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes