Understanding your native account in Solana
The native account of Solana is an account that exists on the sole network itself. Contrary to non -native accounts which are external entities that use an intellectual contract or signature on the network. Here’s what we need to know about our native accounts and their differences.
Who is the native account in Solana?
The natural account is Blockchain Solana for personalized account account. It may contain wealth, token or even used as a basis for other contracts. The mother accounts are exceptional as they can interact with each other and on Solana Network without external connections.
the main features of local accounts
Native accounts have some qualities:
* Property : The natural account belongs to an entity that can be a consumer or other contract.
* Personalization : Natural accounts are not designed from scratch. They inherit properties and functionality from existing contracts or from the same Solana network.
* Interaction : native accounts can interact with each other and external contracts using Solana’s native bees.
What happens when the account is marked as a native?
When the contract indicates the account as a local, it means that the account has been applied in terms of specific needs. “Account.is_native” “checks the fragment of code – this goal:
`Javascript
If (account.is_native ()) {
Account.Close_authority = Cnation :: not;
}
``
This line of code verifies that the current account is native and, in this case, closes any authority, may have been considered as on behalf of another contract.
#distant
On the other hand, non -native accounts are external entities that use an intellectual contract or an access key on the Solana network. They do not exist in the blockchain itself and are based on an external connection to function correctly.
Main differences between local and non -native accounts
Here are some important differences between local and non -native accounts:
* Personalization : natural accounts are made to measure and non -local accounts are created using an external intelligent contract or a token.
* Property : ships belong to an entity, while non -local accounts belong to consumers or other contracts on the network.
* Interaction : The accounts of the inconvenience require a further interaction with external contracts and bees to properly exposure.
Conclusion of ###
In conclusion, the local accounts of Solana are made on unique entities that interact with each other and on the net without external connections. By marking the account as a native account, it allows you to close the power on behalf of another contract by allowing its personalized function. Although there are non -native accounts outside the blockchain, they require further interaction with external contracts for correct exposure.
This knowledge can help developers to create more efficient and efficient solutions on their Solana network.