\AccountsApi

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

Method
HTTP request
Description

POST /accounts/{accountName}/broadcast-tx

POST /accounts

DELETE /accounts/{accountName}

POST /accounts/{accountName}/deploy

GET /accounts/{accountName}

GET /accounts/{accountName}/balance

GET /accounts/{accountName}/nonce

GET /accounts

POST /accounts/{accountName}/sign-message

POST /accounts/{accountName}/sign-transaction

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

POST /accounts/{accountName}/transfer-eth

broadcast_tx

crate::models::BroadCastRawTransactionApiResponse broadcast_tx(authorization, account_name, broadcast_input)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

account_name

String

[required]

broadcast_input

[required]

Return type

crate::models::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]

create_account

crate::models::AccountApiResponse create_account(authorization, create_account_input)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

create_account_input

[required]

Return type

crate::models::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]

delete_account

crate::models::AccountApiResponse delete_account(authorization, account_name)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

account_name

String

[required]

Return type

crate::models::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]

deploy_contract

crate::models::TransactionApiResponse deploy_contract(authorization, account_name, deploy_input)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

account_name

String

[required]

deploy_input

[required]

Return type

crate::models::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]

get_account

crate::models::AccountApiResponse get_account(authorization, account_name)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

account_name

String

[required]

Return type

crate::models::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]

get_balance

crate::models::BalanceApiResponse get_balance(account_name, authorization, chain_id)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

chain_id

String

[required]

Return type

crate::models::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]

get_nonce

crate::models::NonceApiResponse get_nonce(account_name, authorization)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

Return type

crate::models::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]

list_accounts

crate::models::AccountApiResponse list_accounts(authorization)

Parameters

Name
Type
Description
Required
Notes

authorization

String

[required]

Return type

crate::models::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]

sign_message

crate::models::SignMessageApiResponse sign_message(account_name, authorization, sign_message)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

sign_message

[required]

Return type

crate::models::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]

sign_transaction

crate::models::TransactionApiResponse sign_transaction(account_name, authorization, input_body)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

input_body

[required]

Return type

crate::models::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]

sign_typed_data

crate::models::SignMessageApiResponse sign_typed_data(account_name, authorization, sign_typed_data)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

sign_typed_data

[required]

Return type

crate::models::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]

transfer_eth

crate::models::TransactionApiResponse transfer_eth(account_name, authorization, input_body)

Parameters

Name
Type
Description
Required
Notes

account_name

String

[required]

authorization

String

[required]

input_body

[required]

Return type

crate::models::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]

Last updated