\AccountsAPI
Method
HTTP request
Description
BroadcastTx
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
accountName := "accountName_example" // string |
broadcastInput := *openapiclient.NewBroadcastInput("ChainId_example", "RawTransaction_example") // BroadcastInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountsAPI.BroadcastTx(context.Background(), accountName).Authorization(authorization).BroadcastInput(broadcastInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.BroadcastTx``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BroadcastTx`: BroadCastRawTransactionAPIResponse
fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.BroadcastTx`: %v\n", resp)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
CreateAccount
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
DeleteAccount
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
DeployContract
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
GetAccount
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
GetBalance
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
GetNonce
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
ListAccounts
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SignMessage
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
SignTransaction
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
SignTypedData
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
TransferEth
Example
Path Parameters
Name
Type
Description
Notes