\Erc20API
Method
HTTP request
Description
AllowanceErc20
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
name := "name_example" // string |
inputBody := *openapiclient.NewInputBody() // InputBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Erc20API.AllowanceErc20(context.Background(), name).Authorization(authorization).InputBody(inputBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Erc20API.AllowanceErc20``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AllowanceErc20`: TransactionAPIResponse
fmt.Fprintf(os.Stdout, "Response from `Erc20API.AllowanceErc20`: %v\n", resp)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
ApproveErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
BalanceOfErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
DecimalsErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
NameErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SymbolErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
TotalSupplyErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
TransferErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
TransferFromErc20
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes