I want to call a payable method using the polkadot API.
if the method would not be payable it would look like this:
const { gasRequired, storageDeposit, result, output } = await contract.query
.method(
fromAccount,
{
gasLimit,
storageDepositLimit
},
toAccount,
input,
input2
)
But how could I transfer a certain amount of native chain tokens when calling this method?