AccountsAPI

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

    open class func broadcastTx(authorization: String, accountName: String, broadcastInput: BroadcastInput, completion: @escaping (_ data: BroadCastRawTransactionAPIResponse?, _ error: Error?) -> Void)

Example

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

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

createAccount

Example

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

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

deleteAccount

Example

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

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

deployContract

Example

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

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

getAccount

Example

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

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

getBalance

Example

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

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

getNonce

Example

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

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

listAccounts

Example

Parameters

Name
Type
Description
Notes

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]

signMessage

Example

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

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

signTransaction

Example

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

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

signTypedData

Example

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

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

transferEth

Example

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

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