\ERC1155API
Method
HTTP request
Description
BalanceOf
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
name := "name_example" // string |
authorization := "authorization_example" // string |
erc1155Request := *openapiclient.NewErc1155Request() // Erc1155Request |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ERC1155API.BalanceOf(context.Background(), name).Authorization(authorization).Erc1155Request(erc1155Request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ERC1155API.BalanceOf``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BalanceOf`: TransactionAPIResponse
fmt.Fprintf(os.Stdout, "Response from `ERC1155API.BalanceOf`: %v\n", resp)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
BalanceOfBatch
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
IsApprovedForAll
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
SafeBatchTransferFrom
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
SafeTransferFrom
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
SetApprovalForAll
Example
Path Parameters
Name
Type
Description
Notes