![JAR search and dependency download from the Maven repository](/logo.png)
io.neow3j.devpack.annotations.OnNEP11Payment Maven / Gradle / Ivy
package io.neow3j.devpack.annotations;
import io.neow3j.devpack.ByteString;
import io.neow3j.devpack.Hash160;
/**
* Marks a smart contract method as the method to be called when the contract receives non-fungible
* tokens from a NEP-11 contract. The annotated method can have any name but is required to have the
* signature "{@code void methodName(Hash160 sender, int amount, ByteString tokenId, Object data)}".
* The method will appear under the name "onNEP11Payment" in the contract manifest.
*
* If a contract does not have this method, it cannot receive NEP-11 tokens.
*/
@MethodSignature(
name = "onNEP11Payment",
parameterTypes = {Hash160.class, int.class, ByteString.class, Object.class},
returnType = void.class
)
public @interface OnNEP11Payment {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy