Class WalletAPI

java.lang.Object
com.nftworlds.wallet.api.WalletAPI

public class WalletAPI extends Object
  • Constructor Details

    • WalletAPI

      public WalletAPI()
  • Method Details

    • getNFTPlayer

      public NFTPlayer getNFTPlayer(UUID uuid)
      Get an NFT Player
      Parameters:
      uuid -
      Returns:
      NFT Player
    • getNFTPlayer

      public NFTPlayer getNFTPlayer(org.bukkit.entity.Player player)
      Get an NFT Player
      Parameters:
      player -
      Returns:
      NFT Player
    • getWallets

      public List<Wallet> getWallets(org.bukkit.entity.Player player)
      Get a player's wallet
      Parameters:
      player -
      Returns:
      player's wallet
    • getWallets

      public List<Wallet> getWallets(UUID uuid)
      Get a player's wallet
      Parameters:
      uuid -
      Returns:
      player's wallet
    • getPrimaryWallet

      public Wallet getPrimaryWallet(org.bukkit.entity.Player player)
      Get a player's primary wallet
      Parameters:
      player -
      Returns:
      player's wallet
    • getPrimaryWallet

      public Wallet getPrimaryWallet(UUID uuid)
      Get a player's primary wallet
      Parameters:
      uuid -
      Returns:
      player's wallet
    • requestWRLD

      public <T> void requestWRLD(UUID uuid, double amount, Network network, String reason, T payload)
      Send a request for a WRLD transaction to a player
      Parameters:
      uuid -
      amount -
      network -
      reason -
      payload -
    • sendWRLD

      public void sendWRLD(UUID uuid, double amount, Network network, String reason)
      Send WRLD to a player's primary wallet
      Parameters:
      uuid -
      amount -
      network -
      reason -
    • sendWRLD

      public void sendWRLD(org.bukkit.entity.Player player, double amount, Network network, String reason)
      Send WRLD to a player's primary wallet
      Parameters:
      player -
      amount -
      network -
      reason -
    • createPlayerPayment

      public void createPlayerPayment(org.bukkit.entity.Player from, org.bukkit.entity.Player to, double amount, Network network, String reason)
      Create a peer to peer payment link
      Parameters:
      from -
      to -
      amount -
      network -
      reason -