Skip to main content
Version: 5.9.0

RegisterRewardCallback

Sets a reward handler for any API call results that return rewards.

Method Parameters

ParameterDescription
rewardCallbackThe reward callback handler.

Usage

http://localhost:3000
_bc.RegisterRewardCallback(callbackFunction);
JSON Response
{
"status": 200,
"apiRewards": [
{
"service": "authenticationV2",
"operation": "AUTHENTICATE",
"rewards": {
"rewardDetails": {
// the reward depending on type (see docs)
}
}
}
]
}