Define the caller of the InvokeScriptFunction


#1

Hi, one quick question, is it possible to define(restrict) who can be a caller of Callable functions set in an account?


#2

Yes, you can filter by tx.sender or tx.senderPublicKey:

tx.sender == addressFromString( "3Pxxxxxxx" ) ||
tx.senderPublicKey == base58'pubkeyinbase58'

#3

Thanks,

tx.sender == addressFromString( “3Pxxxxxxx” ) ||
tx.senderPublicKey == base58’pubkeyinbase58’

these should be set as @Verifier or predicate?