Add custom types to Pirl 2.0 - Tutorial

To add custom types to Pirl 2.0 you need to open this link http://149.5.28.145:3000/?rpc=ws://149.5.28.145:9944#/settings/developer

And add

{
  "Address": "AccountId",
  "LookupSource": "AccountId",
  "Account": {
    "nonce": "U256",
    "balance": "U256"
  },
  "Transaction": {
    "nonce": "U256",
    "action": "String",
    "gas_price": "u64",
    "gas_limit": "u64",
    "value": "U256",
    "input": "Vec<u8>",
    "signature": "Signature"
  },
  "Signature": {
    "v": "u64",
    "r": "H256",
    "s": "H256"
  },
  "Keys": "SessionKeys5"
}

Click on Save button and you are done

1 Like