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