Package com.nftworlds.wallet.objects
Class NFTPlayer
java.lang.Object
com.nftworlds.wallet.objects.NFTPlayer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createPlayerPayment
(NFTPlayer to, double amount, Network network, String reason) Create a peer to peer player payment linkstatic NFTPlayer
Get a player's primary walletGet a player's wallet(s)boolean
isLinked()
Check if player has their wallet linkedstatic void
<T> void
requestWRLD
(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 wallet
-
Constructor Details
-
NFTPlayer
-
-
Method Details
-
getWallets
Get a player's wallet(s)- Returns:
- player's wallet(s)
-
getPrimaryWallet
Get a player's primary wallet- Returns:
- player's wallet
-
requestWRLD
Send a request for a WRLD transaction to a player- Parameters:
amount
-network
-reason
-
-
sendWRLD
Send WRLD to a player's primary wallet- Parameters:
amount
-network
-reason
-
-
createPlayerPayment
Create a peer to peer player payment link- Parameters:
to
-amount
-network
-reason
-
-
isLinked
public boolean isLinked()Check if player has their wallet linked- Returns:
- if player has wallet linked
-
remove
-
getByUUID
-