Last modified: 2024-09-14
NEO.Transfer Method
Transfers NEO.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
The method will check sender's signature, whether caller is sender, whether receiver is payable, and whether sender's balance is enough.
Syntax
Parameters:
-
from: Script hash of the account you transfer from
-
to: Script hash of the account you transfer to
-
amount: The amount to be transferred.
-
data: An additional parameter, which will be passed as a parameter when the onNEP17Payment method of the receiver is called in the transfer method of NEP-17.
Example
Response body:
Response description:
-
true: assets are transferred successfully.
-
Others: failed.