All Projects → enjin → enjin-java-sdk

enjin / enjin-java-sdk

Licence: Apache-2.0 License
Enjin Platform SDK for Java.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to enjin-java-sdk

enjin-cpp-sdk
Enjin Platform SDK for C++.
Stars: ✭ 15 (-53.12%)
Mutual labels:  nft, blockchain-sdk, nfts, enjin-platform, non-fungible-tokens, enjin-sdk
fnd-docs
Foundation developer docs
Stars: ✭ 33 (+3.13%)
Mutual labels:  nft, nfts
Axie Infinity Extras
Here are all the websites and projects that are useful if you are an Axie Infinity player. If you find some projects that are not on the list, feel free to make a pull request!
Stars: ✭ 13 (-59.37%)
Mutual labels:  nft, nfts
Awesome NFTs
A curated collection about NFTs - by bt3gl
Stars: ✭ 42 (+31.25%)
Mutual labels:  nft, nfts
air-support
Airdrop automation tools for Solana from The Skeleton Crew
Stars: ✭ 112 (+250%)
Mutual labels:  nft, nfts
opensea automatic uploader
(Bypass reCAPTCHAs) A Selenium Python bot to automatically and bulky upload and list your NFTs on OpenSea (all metadata integrated - Ethereum and Polygon supported); reCAPTCHA solver & bypasser included.
Stars: ✭ 205 (+540.63%)
Mutual labels:  nft, nfts
nft-collection-generator
Generates images and metadata for a collection of NFTs.
Stars: ✭ 77 (+140.63%)
Mutual labels:  nft, nfts
CryptoPunks
Subgraph for the Cryptopunks marketplace
Stars: ✭ 37 (+15.63%)
Mutual labels:  nft, nfts
wordpress-nft-plugin
NFT Auction Product Type WordPress Plugin for WooCommerce – BID HAUS
Stars: ✭ 197 (+515.63%)
Mutual labels:  nft, nfts
samila
Generative Art Generator
Stars: ✭ 750 (+2243.75%)
Mutual labels:  nft, nfts
opensea-scraper
Scrapes nft floor prices and additional information from opensea. Used for https://nftfloorprice.info
Stars: ✭ 129 (+303.13%)
Mutual labels:  nft, nfts
incomplete-guide-to-imx
An attempt to TLDR; Layer 2 development with IMX.
Stars: ✭ 29 (-9.37%)
Mutual labels:  nft, nfts
app
Web metaverse client
Stars: ✭ 115 (+259.38%)
Mutual labels:  nfts
nft-contracts
Open-source NFT contracts used by buildship.dev
Stars: ✭ 60 (+87.5%)
Mutual labels:  nft
elven-nft-minter-sc
Elven Tools SC - Smart Contract for launching NFTs collections on the Elrond blockchain
Stars: ✭ 30 (-6.25%)
Mutual labels:  nft
lootloose.com
LootLoose lets you unbundle your Loot Bags into individual item NFTs or rebundle items into their original Loot Bags.
Stars: ✭ 33 (+3.13%)
Mutual labels:  nft
nft-website
NFT School: Community education platform for developers in the non-fungible token space.
Stars: ✭ 260 (+712.5%)
Mutual labels:  nft
nft-generator-py
Unique image & metadata generation using weighted layer collections.
Stars: ✭ 127 (+296.88%)
Mutual labels:  nft
pixel-avatars
A Polygon-based minting projects for Developer DAO members who own an Devs for Revolution NFT
Stars: ✭ 117 (+265.63%)
Mutual labels:  nft
webflow-nft-components
Connect web3 to Webflow without coding skills
Stars: ✭ 69 (+115.63%)
Mutual labels:  nft

Blockchain SDK by Enjin for Java

Tests

Create blockchain video games and applications using the Java programming language.

Learn more about the Enjin blockchain platform.

Sign up to Enjin Cloud: Kovan (Testnet), Mainnet (Production) or JumpNet.

Resources

Table of Contents

Compatibility

The Enjin Java SDK requires at a minimum Java 8.

Installation

Maven

<dependency>
    <groupId>com.enjin</groupId>
    <artifactId>blockchain-sdk</artifactId>
    <version>2.0.0-alpha.6</version>
</dependency>

Gradle

dependencies {
    implementation 'com.enjin:blockchain-sdk:2.0.0-alpha.6'
}

Git

For those that do not use Maven or Gradle, the SDK may be built manually and added to your project's classpath.

  1. Clone the Java SDK repository using git.
  2. Build the Java SDK:
    • ./gradlew sdk:build (Linux)
    • ./gradlew.bat sdk:build (Windows)
  3. Navigate to the build/libs folder in the sdk module.
  4. Add the jar ending in -all to your project's classpath.

Quick Start

This example showcases how to quickly create and authenticate a client on the project schema which will then allow us to make further requests to the platform.

import com.enjin.sdk.EnjinHosts;
import com.enjin.sdk.ProjectClient;
import com.enjin.sdk.graphql.GraphQLResponse;
import com.enjin.sdk.models.AccessToken;
import com.enjin.sdk.schemas.project.queries.AuthProject;

public class Main {

    public static void main(String... args) {
        // Builds the project client to run on the Kovan test network.
        // See: https://kovan.cloud.enjin.io to sign up for the test network.
        ProjectClient client = new ProjectClient(EnjinHosts.KOVAN);

        // Creates the request to authenticate the client.
        // Replace the appropriate strings with the project's UUID and secret.
        AuthProject req = new AuthProject()
                .uuid("<the-project's-uuid>")
                .secret("<the-project's-secret>");

        // Sends the request to the platform and gets the response.
        GraphQLResponse<AccessToken> res = client.authProject(req);

        // Checks if the request was successful.
        if (!res.isSuccess()) {
            System.out.println("AuthProject request failed");
            client.close();
            return;
        }

        // Authenticates the client with the access token in the response.
        client.auth(res.getData().getToken());

        // Checks if the client was authenticated.
        if (client.isAuthenticated()) {
            System.out.println("Client is now authenticated");
        } else {
            System.out.println("Client was not authenticated");
        }

        // Closes client as part of cleanup and free any resources.
        client.close();
    }

}

Contributing

Contributions to the SDK are appreciated!

Issues

You can open issues for bugs and enhancement requests.

Pull Requests

If you make any changes or improvements to the SDK, which you believe are beneficial to others, consider making a pull request to merge your changes to be included in the next release.

Ensure that tests under the sdk module are passing and add any necessary test classes or test cases for your code.

Be sure to include your name in the list of contributors.

Deploying

To deploy to maven central you should set the following in your local.properties.

deployment.username=<username>
deployment.password=<password>

GPG signing is required to publish release builds to Maven Central. You must configure the following in local.properties.

signing.gnupg.keyName=<last 8 characters of key>
signing.gnupg.passphrase=<key passphrase>

Copyright and Licensing

The license summary below may be copied.

Copyright 2021 Enjin Pte. Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].