Move.

Post

Share your knowledge.

skywinder.
Apr 10, 2025
Expert Q&A

What's a native function and can we call them directly?

I've come across the term 'native function' in Move but can't find detailed information about it. I heard that they're declared in Move but defined externally, often in Rust. Does that mean they are internal functions that can't be called directly by wallets or other modules?

  • Move CLI
  • Move
0
1
Share
Comments
.

Answers

1
mssoni.
Apr 11 2025, 08:43

Native functions in Move are indeed declared within the language but they don't have a body because they're implemented outside of Move, usually in Rust. Despite this, if the native function is public, you can call it just like any other function. They aren't restricted to internal use only. You can invoke them as long as the necessary permissions and public access are in place.

0
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

We use cookies to ensure you get the best experience on our website.
More info