The RPC is added as last parameter (after the callback) and is optional.
In the case of transfer, there is already an optional enforce parameter to decide if the user can change the account making the transfer or not. You ll have to provide this boolean before the rpc.
If the RPC provided is not whitelisted, it is ignored and the current chosen one is used.
After the end of the request, the background goes back to using the RPC according to user preferences.
The example folder has been updated to test adding rpc parameter on requestCustomJson
Fix #123
Behavior :
enforce
parameter to decide if the user can change the account making the transfer or not. You ll have to provide this boolean before the rpc.The example folder has been updated to test adding
rpc
parameter onrequestCustomJson