Skip to main content
Version: 5.7.0

AwardPeerCurrency

Used to award Peer currency.

ServiceOperation
virtualCurrencyAWARD_PEER_VC

Method Parameters

ParameterDescription
vcIdType of currency (Ex. ticket, tokens)
vcAmountCurrency amount to be awarded
peerName of the peer

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status" : 200,
"data" :
{
"currencyMap": {
"gems": {
"purchased": 0,
"balance": 0,
"consumed": 0,
"awarded": 0,
"revoked": 0
},
"gold": {
"purchased": 0,
"balance": 100,
"consumed": 0,
"awarded": 100,
"revoked": 0
}
}
}
}