@claim

Decorator
Marks a SmartContract method that verifies GAS claims from the SmartContract. Method must return a boolean indicating whether the SmartContract wishes to allow GAS to be claimed. May optionally take the ClaimTransaction this SmartContract is executed in as the last argument. Accessing Blockchain.currentTransaction` will result in an error. See the Native Assets chapter of the advanced guide for more information.
export function claim(target: any, propertyKey: string, descriptor: PropertyDescriptor): void; 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE