Browse an entire list of code examples for you to copy.
To add your own Snippet, make a Pull Request here.
Learn how to bulk transfer NFTs to different addresses in Cadence using the example Avataaars contract.
Learn how to burn an NFT in Cadence using the example Avataaars contract.
Learn how to create an account directly in Cadence.
Learn how to deploy a smart contract directly in Cadence.
Learn how to mint an NFT in Cadence using the example Avataaars contract.
Generate a random number bewteen min & max in Cadence using the built-in revertibleRandom function.
Learn how to get and calculate time in Cadence.
Learn how to transfer an NFT in Cadence using the example Avataaars contract.
Learn how to import a Cadence contract at run-time in a script or transaction.
Learn how to verify a users authentication ("account proof") using FCL on testnet and mainnet.
Learn how to log in, log out, and access user data using only Dapper Wallet.
Learn how to log in, log out, and access user data.
Configure WalletConnect and mobile wallets with FCL.
Learn how to take a public key and create an account with it using FCL.
Learn how to execute a basic transaction with FCL using a custodial wallet (Blocto, Lilico, etc).
Learn how to execute a basic transaction with FCL using a non-custodial wallet (aka with a private key).
Learn how to pass a dictionary argument to a Cadence script or transaction in FCL.
Learn how to pass a storage/public path arg to a Cadence script or transaction in FCL.
Learn how to pass a struct argument to a Cadence script or transaction in FCL.
Learn how to execute a basic script using FCL.
Sign a user message with FCL on the frontend.
Learn how to fetch blocks with the Historical API.
Learn how to fetch events with the Historical API.
Learn how to fetch transaction data with the Historical API.
Learn how to setup cadence using Flow Unity SDK.
Learn how to execute scripts using Flow Unity SDK.
Learn how to setup and authenticate using Flow Unity SDK.
Learn how to send transactions using Flow Unity SDK.
Poll for events happening on chain using FCL.
Get all the moments a user has on NBATopShot.
Buy an NFT listed on NFTStorefrontV2 via NFT Catalog.
Sign a user message with FCL and verify it on chain in Cadence.