AccountsApi

com.usemoon.MoonSDK.Api.AccountsApi

All URIs are relative to https://beta.usemoon.ai

Method
HTTP request
Description

BroadcastTx

POST /accounts/{accountName}/broadcast-tx

CreateAccount

POST /accounts

DeleteAccount

DELETE /accounts/{accountName}

DeployContract

POST /accounts/{accountName}/deploy

GetAccount

GET /accounts/{accountName}

GetBalance

GET /accounts/{accountName}/balance

GetNonce

GET /accounts/{accountName}/nonce

ListAccounts

GET /accounts

SignMessage

POST /accounts/{accountName}/sign-message

SignTransaction

POST /accounts/{accountName}/sign-transaction

SignTypedData

POST /accounts/{accountName}/sign-typed-data

TransferEth

POST /accounts/{accountName}/transfer-eth

BroadcastTx

BroadCastRawTransactionAPIResponse BroadcastTx (string authorization, string accountName, BroadcastInput broadcastInput)

Example

Using the BroadcastTxWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

accountName

string

broadcastInput

BroadcastInput

Return type

BroadCastRawTransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateAccount

AccountAPIResponse CreateAccount (string authorization, CreateAccountInput createAccountInput)

Example

Using the CreateAccountWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

createAccountInput

CreateAccountInput

Return type

AccountAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAccount

AccountAPIResponse DeleteAccount (string authorization, string accountName)

Example

Using the DeleteAccountWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

accountName

string

Return type

AccountAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeployContract

TransactionAPIResponse DeployContract (string authorization, string accountName, DeployInput deployInput)

Example

Using the DeployContractWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

accountName

string

deployInput

DeployInput

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAccount

AccountAPIResponse GetAccount (string authorization, string accountName)

Example

Using the GetAccountWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

accountName

string

Return type

AccountAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetBalance

BalanceAPIResponse GetBalance (string accountName, string authorization, string chainId)

Example

Using the GetBalanceWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

chainId

string

Return type

BalanceAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetNonce

NonceAPIResponse GetNonce (string accountName, string authorization)

Example

Using the GetNonceWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

Return type

NonceAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListAccounts

AccountAPIResponse ListAccounts (string authorization)

Example

Using the ListAccountsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

Return type

AccountAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SignMessage

SignMessageAPIResponse SignMessage (string accountName, string authorization, SignMessage signMessage)

Example

Using the SignMessageWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

signMessage

SignMessage

Return type

SignMessageAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SignTransaction

TransactionAPIResponse SignTransaction (string accountName, string authorization, InputBody inputBody)

Example

Using the SignTransactionWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

inputBody

InputBody

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SignTypedData

SignMessageAPIResponse SignTypedData (string accountName, string authorization, SignTypedData signTypedData)

Example

Using the SignTypedDataWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

signTypedData

SignTypedData

Return type

SignMessageAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TransferEth

TransactionAPIResponse TransferEth (string accountName, string authorization, InputBody inputBody)

Example

Using the TransferEthWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

accountName

string

authorization

string

inputBody

InputBody

Return type

TransactionAPIResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]