# how to inscribe a flowmap

## Easy mode

1. Visit <https://www.flowmap.vip/>
2. Click on the "inscribe flowmap" button.
3. Choose the number of flowmaps to inscribe & submit.
4. If you don't have a wallet you can choose Flow Reference Wallet as it provides the easiest way to buy flow tokens.

<figure><img src="https://658895844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtOkDRSmSQqWGnnRkHQkk%2Fuploads%2Fy1dynlHugJufc4DvNg64%2Finscribe_flowmap.png?alt=media&#x26;token=95d93838-4799-488e-b9c4-151089003bd4" alt=""><figcaption><p>Click on the "inscribe flowmap" button to claim ownership of a Flow block.</p></figcaption></figure>

<figure><img src="https://658895844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtOkDRSmSQqWGnnRkHQkk%2Fuploads%2FnvADetSVZlJFC7TbUR9d%2Fpick%20wallet.png?alt=media&#x26;token=b9250be6-8acb-434c-a913-45224b7855c2" alt=""><figcaption><p>Choose a wallet. Flow reference wallet is recommended on desktop.</p></figcaption></figure>

<figure><img src="https://658895844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtOkDRSmSQqWGnnRkHQkk%2Fuploads%2FpkLhj8uicdR42OS5TCTd%2Ffund%20flow%20wallet.png?alt=media&#x26;token=64832f12-152f-420e-abd8-26eb015cda2b" alt=""><figcaption><p>Fund your wallet with Flow tokens by clicking buy.</p></figcaption></figure>

## Hardcore mode

1. Go to <https://run.ecdao.org/> or open your terminal with flow-cli.
2. Choose mainnet.
3. Insert the transaction and input the quantity you want to inscribe. (Adjust quantity if the transaction does not go through)
4. Run the transaction.

```swift
import FlowToken from 0x1654653399040a61
import NonFungibleToken from 0x1d7e57aa55817448
import Flowmap from 0x483f0fe77f0d59fb

transaction(qty: UFix64) {
  prepare(signer: AuthAccount) {
      if(signer.borrow<&Flowmap.Collection>(from: Flowmap.CollectionStoragePath) == nil) {
          signer.save<@NonFungibleToken.Collection>(<- Flowmap.createEmptyCollection(), to: Flowmap.CollectionStoragePath)
          signer.unlink(Flowmap.CollectionPublicPath)
          signer.link<&{Flowmap.CollectionPublic}>(Flowmap.CollectionPublicPath, target: Flowmap.CollectionStoragePath)
      }

      let vaultRef = signer.borrow<&FlowToken.Vault>(from: /storage/flowTokenVault)?? panic("Could not borrow reference to the owner's Vault!")

      let inscriptionFee <- vaultRef.withdraw(amount: Flowmap.inscriptionFee * qty) as! @FlowToken.Vault

      Flowmap.batchInscribe(inscriptionFee: <-inscriptionFee, quantity: qty, receiver: signer.address)

  }
}
```

<figure><img src="https://658895844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtOkDRSmSQqWGnnRkHQkk%2Fuploads%2F5mAMEejJILepiBTAlXHb%2Fecdao.png?alt=media&#x26;token=544d48be-5531-4fc9-847d-9b69f955983d" alt=""><figcaption><p>Cadence Transaction to inscribe Flowmap on <a href="https://run.ecdao.org/">https://run.ecdao.org/</a></p></figcaption></figure>
