Skip to content

Treasury Contract

Back to Native Contracts

The Treasury native contract records treasury-related payment callbacks. The embedded runtime implements the callback surface needed by compiler/runtime tests and stores received NEP-17/NEP-11 data in memory.

Methods

MethodDevpack wrapperReturnSafeEmbedded runtime behavior
verifyNativeCalls.treasuryVerify()boolReturns true.
onNEP17PaymentNativeCalls.treasuryOnNEP17Payment(from,amount,data)voidAdds the received amount to an embedded per-account balance.
onNEP11PaymentNativeCalls.treasuryOnNEP11Payment(from,amount,tokenId,data)voidRecords the received token ID in embedded per-account state.

Embedded Runtime Limits

The embedded runtime does not model treasury governance, authorization, or live-chain asset custody. Use Neo-Express or TestNet for production treasury behavior.


MIT Licensed