Package com.nftworlds.wallet.api
Class WalletAPI
java.lang.Object
com.nftworlds.wallet.api.WalletAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createPlayerPayment
(org.bukkit.entity.Player from, org.bukkit.entity.Player to, double amount, Network network, String reason) Create a peer to peer payment linkgetNFTPlayer
(UUID uuid) Get an NFT PlayergetNFTPlayer
(org.bukkit.entity.Player player) Get an NFT PlayergetPrimaryWallet
(UUID uuid) Get a player's primary walletgetPrimaryWallet
(org.bukkit.entity.Player player) Get a player's primary walletgetWallets
(UUID uuid) Get a player's walletgetWallets
(org.bukkit.entity.Player player) Get a player's wallet<T> void
requestWRLD
(UUID uuid, double amount, Network network, String reason, T payload) Send a request for a WRLD transaction to a playervoid
Send WRLD to a player's primary walletvoid
Send WRLD to a player's primary wallet
-
Constructor Details
-
WalletAPI
public WalletAPI()
-
-
Method Details
-
getNFTPlayer
Get an NFT Player- Parameters:
uuid
-- Returns:
- NFT Player
-
getNFTPlayer
Get an NFT Player- Parameters:
player
-- Returns:
- NFT Player
-
getWallets
Get a player's wallet- Parameters:
player
-- Returns:
- player's wallet
-
getWallets
Get a player's wallet- Parameters:
uuid
-- Returns:
- player's wallet
-
getPrimaryWallet
Get a player's primary wallet- Parameters:
player
-- Returns:
- player's wallet
-
getPrimaryWallet
Get a player's primary wallet- Parameters:
uuid
-- Returns:
- player's wallet
-
requestWRLD
Send a request for a WRLD transaction to a player- Parameters:
uuid
-amount
-network
-reason
-payload
-
-
sendWRLD
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
-
-