How to find multisig account from which fee will get debited in case of multisig transaction

Hi,

I want to find out the multisig account from which all fees will get debited (500000+ 500000+100000 in below example) of multisig transactions.

Suppose for the below example, how to identify the main multisig account?

{
“timeStamp”: 187835821,
“signature”: “f97708166daa858c4cbba08a49d0f242894ec918b8d5b44bf5b24b52e6d00946241ac173e78f595435ca7f487fe3f9c54a0d11677c037c3344e7672100b54c03”,
"fee": 500000,
“type”: 4100,
“deadline”: 187839421,
“version”: 1744830465,
“signatures”: [
{
“timeStamp”: 187835885,
“otherHash”: {
“data”: “75e36ef851a01c895035d1ff5b8e47c3a2a392c3021894e90d0b660aec821a35”
},
“otherAccount”: “NAGJG3QFWYZ37LMI7IQPSGQNYADGSJZGJRD2DIYA”,
“signature”: “84558076acc530986e76f9256759c48173823ce13018e0010cdd4e81f5fd180b6c91014441bc1e2da0c768c8963a42bf077c63add2fba20ef3186e636ca31701”,
"fee": 500000,
“type”: 4098,
“deadline”: 187922285,
“version”: 1744830465,
“signer”: “ae6754c70b7e3ba0c51617c8f9efd462d0bf680d45e09c3444e817643d277826”
}
],
“signer”: “aa455d831430872feb0c6ae14265209182546c985a321c501be7fdc96ed04757”,
“otherTrans”: {
“timeStamp”: 187835821,
“amount”: 3096758807,
"fee": 100000,
“recipient”: “NC64UFOWRO6AVMWFV2BFX2NT6W2GURK2EOX6FFMZ”,
“type”: 257,
“deadline”: 187839421,
“message”: {
“payload”: “313035373031313237”,
“type”: 1
},
“version”: 1744830465,
“signer”: “fbae41931de6a0cc25153781321f3de0806c7ba9a191474bb9a838118c8de4d3”
}
}

We’ve API to retrieve the account data from public key (account/get/from-public-key?publicKey=) and cosignatoryOf property is available in response.
But its array and can be multiple and I want it for a specific transaction like the above one.

Or simply I want the account from which all fees are deducted.

Can anyone please help?

Multisig account should be here transaction.otherTrans.signer I believe

Yes. I cross checked the same with some of the blocks and otherTrans.signer is the one from which amount/fee is getting deducted.

Thanks!