Translations: Lightweight Contracts/111/en

From ArdorDocs
Jump to: navigation, search

For contracts triggered by a transaction use

context.getRuntimeParams()

to load the specific invocation parameters or preferably define the parameter as a method of an inner interface decorated with @ContractParametersProvider annotation. Name the method the same as the parameter name and decorate it with the @ContractInvocationParameter annotation.