Last modified: 2024-09-14
GAS.Transfer Method
Transfers GAS
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
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
Respond:
Respond description:
-
Boolean type: true means assets are transferred successfully.
-
Others: failed.