# SNS calling functions

**URL:** <https://forum.dfinity.org/t/sns-calling-functions/18842>\
**Category:** Developers\
**Created:** [March 6, 2023, 5:33pm UTC](https://forum.dfinity.org/t/sns-calling-functions/18842 "2023-03-06T17:33:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [March 6, 2023, 5:33pm UTC](https://forum.dfinity.org/t/sns-calling-functions/18842/1 "2023-03-06T17:33:51Z")

</div>

Can an SNS instance vote to call any function on the IC through governance? Or would it have to vote to deploy a wasm that calls a function?

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [March 9, 2023, 2:43pm UTC](https://forum.dfinity.org/t/sns-calling-functions/18842/2 "2023-03-09T14:43:27Z")

</div>

You can find more information on executing functions with SNS governance being the caller [here](https://internetcomputer.org/docs/current/developer-docs/integrations/sns/get-sns/testflight) (Section 7). Note that SNS governance can actually execute functions on any canister (even those that are not registered with SNS) except for the following ones: SNS governance, SNS root, SNS ledger, SNS swap, NNS ledger, and IC management canister.

---

<div class="post-metadata">

**Author:** ![infu](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/infu/32/11321_2.png) [@infu](https://forum.dfinity.org/u/infu)\
**Post date:** [January 28, 2024, 1:16pm UTC](https://forum.dfinity.org/t/sns-calling-functions/18842/3 "2024-01-28T13:16:16Z")

</div>

Greetings @mraszyk  
Just adding to the reply after checking out the SNS code. Please let me know if there are flaws in these statements:

The reserved canisters are here: [ic/rs/sns/governance/src/governance.rs at 58e5a889ef576e27217e35849eb82a3bc172d7ff · dfinity/ic · GitHub](https://github.com/dfinity/ic/blob/58e5a889ef576e27217e35849eb82a3bc172d7ff/rs/sns/governance/src/governance.rs#L776)

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/3/31901af67adfe11c0ba60be49fef855348a89199.png)

> [@mraszyk](#):
>
> except for the following ones: SNS governance, SNS root, SNS ledger, SNS swap, NNS ledger, and IC management canister.

To clarify this means not all SNSes, just the ones where proposals get executed. One SNS calling canisters of another is allowed. Also, not all NNS ledgers are reserved (ckBTC, ckETH), only the ICP ledger.

Once and if SNSes get ckBTC and ckETH treasuries their canisters will be reserved too.  
Meanwhile, we can create generic nervous functions that allow the DAO to use other ledgers.  
Currently, an SNS treasury ICP account is {owner: governance\_canister, subaccount:null}, and other treasuries will follow the same pattern.

---

<div class="post-metadata">

**Author:** ![infu](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/infu/32/11321_2.png) [@infu](https://forum.dfinity.org/u/infu)\
**Post date:** [January 28, 2024, 3:33pm UTC](https://forum.dfinity.org/t/sns-calling-functions/18842/4 "2024-01-28T15:33:03Z")

</div>

Made a repo with for our external canister validator functions:

> <https://github.com/Neutrinomic/external_gf_validators/blob/336eafef25a1428032ab8754375e96f004f61d8d/src/main.mo#L15>

**Outputs:**  
amount: 1\_000\_000\_000\_000\_000\_000\_000\_000\_000\_000  
to owner: lovjp-a2s3z-lqgmk-epyel-hshnr-ksdzf-abimc-f7dpu-33z4u-2vbkf-uae  
to subaccount: ?“\AA\AA\AA\AA\AA\AA\AA\AA\AA\AA\AA\AA\AA”  
from\_subaccount: null  
fee: ?10\_000  
memo: ?“\AB\AB\AB\AB\AB\AB”

Doesn’t use external libraries (only mo:base) so the security won’t be reduced. Also prevents these proposals to be used for inscribing large files
