Hi Martin here is the data I am using....
funcName: "calculateRewardsForGivenPosition"
scAddress: "erd1qqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl"
input :
args: [
new BigUIntValue(new BigNumber(balance)),
new BytesValue(Buffer.from(attributes, "base64")),
],
This "balance" and this "attributes" come from the api for example :
assets: {...}
attributes: "AAAAD01FWEZBUk1MLTI4ZDY0NgAAAAAAFUvwAAAACsC42JxlK8ZAAAAAAAAMTEtNRVgtYWFiOTEwAAAAAAAxiRwAAAAKwLjYnGUrxkAAAA=="
balance: "910104174082181681905664"
collection: "LKFARM-9d1ea8"
creator: "erd1qqqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl"
decimals: 18
identifier: "LKFARM-9d1ea8-6daad0"
isWhitelistedStorage: false
name: "LockedLPStaked"
nonce: 7187152
ticker: "LKFARM"
type: "MetaESDT"
This token corresponds to the one for staking lkmex and reward on lkmex.
return : "invalid function (not found)"
Hi Martin here is the data I am using.... funcName: "calculateRewardsForGivenPosition" scAddress: "erd1qqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl" input : args: [ new BigUIntValue(new BigNumber(balance)), new BytesValue(Buffer.from(attributes, "base64")), ], This "balance" and this "attributes" come from the api for example : assets: {...} attributes: "AAAAD01FWEZBUk1MLTI4ZDY0NgAAAAAAFUvwAAAACsC42JxlK8ZAAAAAAAAMTEtNRVgtYWFiOTEwAAAAAAAxiRwAAAAKwLjYnGUrxkAAAA==" balance: "910104174082181681905664" collection: "LKFARM-9d1ea8" creator: "erd1qqqqqqqqqqqqqpgqrc4pg2xarca9z34njcxeur622qmfjp8w2jps89fxnl" decimals: 18 identifier: "LKFARM-9d1ea8-6daad0" isWhitelistedStorage: false name: "LockedLPStaked" nonce: 7187152 ticker: "LKFARM" type: "MetaESDT" This token corresponds to the one for staking lkmex and reward on lkmex. return : "invalid function (not found)"
Sorry I didn't expect you answer me that fast I'm not in from of the computer, when I get home if you are available I will tag you with the details