Erc20Api

moonsdk.Erc20Api

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

Method
HTTP request
Description

POST /erc20/{name}/allowance

POST /erc20/{name}/approve

POST /erc20/{name}/balance-of

POST /erc20/{name}/decimals

POST /erc20/{name}/name

POST /erc20/{name}/symbol

POST /erc20/{name}/total-supply

POST /erc20/{name}/transfer

POST /erc20/{name}/transfer-from

allowance_erc20

TransactionAPIResponse allowance_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

approve_erc20

TransactionAPIResponse approve_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

balance_of_erc20

TransactionAPIResponse balance_of_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

decimals_erc20

TransactionAPIResponse decimals_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

name_erc20

TransactionAPIResponse name_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

symbol_erc20

TransactionAPIResponse symbol_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

total_supply_erc20

TransactionAPIResponse total_supply_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

transfer_erc20

TransactionAPIResponse transfer_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

transfer_from_erc20

TransactionAPIResponse transfer_from_erc20(authorization, name, input_body)

Example

  • Api Key Authentication (ApiKeyAuth):

  • Api Key Authentication (BearerAuth):

Parameters

Name
Type
Description
Notes

authorization

str

name

str

input_body

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]

Last updated