From scrypto, you may wish to make calls to a method or blueprint function. This is known as an external, or cross-blueprint call. This allows a developer to create complex systems by composing variou
To convert a Bech32 address to an Address type in Scrypto (e.g., ComponentAddress), you can use the following example for a ComponentAddress on mainnet:
Scrypto splits the concept of "smart contract" into two parts: blueprints and components.
Scrypto allows a component to own other components, similar to how a component can own vaults. If a component is owned by another component, its methods may only be accessed by the blueprint of the pa
Scrypto coverage tool allows you to check the test coverage of your blueprint code by running the tests with instrumented wasm file.
Scrypto is based on Rust which is a statically typed language. All variables are associated with a type, either explicitly specified or inferred by the compiler.
See the following articles:
Functions and methods form the primary part of the implementation of a blueprint; they define the behavior to accomplish specific tasks. Calls to functions and methods are also how transactions intera
Logs are very useful for debugging and security purpose. To emit a log in Scrypto, you will need to use one of the following macros.
Legacy documentation: Runtime API
Legacy documentation: Scrypto
Events in Scrypto are a way to communicate to off chain clients. They are emitted by the component and can be listened for to begin secondary actions with the Gateway or Core APIs. There are many even