Links

Development account

Specifics of the development account (deposit, interacting with private contracts, how to transform own account)
Smart Contracts can only be deployed by an address with the developer role. Here is how you can enable that role on your account.

Prerequisites:

  1. 1.
    A Polkadot Account Create with Polkadot.js​
  2. 2.
    An Ethereum Account Create with Metamask​
  3. 3.
    Some ACA or KAR in your Polkadot Account

Enable Contract Development

  1. 1.
    Go to the Developer Section of the Polkadot App then select Extrinsics.
  2. 2.
    Select the target account from the top dropdown
  3. 3.
    Select evm from the extrinsic dropdown menu
  4. 4.
    Select enableContractDevelopment() from the method/action dropdown
  5. 5.
    Click Submit Transaction & Sign and Submit
Developer > Extrinsic > Submission > evm > enableContractDevelopment()

Verify developer status

You can verify your or someone else's developer status by accessing a smart contract like in these examples:

Bind Accounts

Step 1: Get the Genesis hash

  1. 1.
    Select the Metadata from the Settings Section of the Polkadot App​
  2. 2.
    Copy the Genesis Hash hex string
Step 1: Getting the Genesis hash

Step 2: Get the Chain id for your target chain

chainId can be found in network configuration​

Step 3: Create the signature of the claim on the EVM+ Playground​

  1. 1.
    Select the right account in Metamask
  2. 2.
    Fill in the Substrate address, Chain id & Genesis hash
  3. 3.
    Click Sign & copy the signature to the next step
Step 2: Create the signature of the claim

Step 4: Claim Account on the Developer Section of the Polkadot App​

The ethAddress should be the same as your metamask wallet address that you used above to generate the signature.
  1. 1.
    Select evmAcounts from the extrinsic dropdown menu
  2. 2.
    Select claimAccount(ethAddress, ethSignature) from the method/action dropdown
  3. 3.
    Fill in the ethAddress & ethSignature
  4. 4.
    Click Submit Transaction
Step 3: Fill in eth Address and eth Signature

Step 5: Confirm the bindings

  1. 1.
    Select the Developer tab, then Chain state from the dropdown
  2. 2.
    Select Storage and then evmAccounts from the state query dropdown
  3. 3.
    Click the + button on the right
  4. 4.
    Double check that the evmAccounts.evmAddresses is indeed the right one.
Developer > Chain state > Storage > evmAccounts > evmAddresses