{
  "version": "0.1.0",
  "name": "relations_derivation",
  "instructions": [
    {
      "name": "initBase",
      "accounts": [
        {
          "name": "myAccount",
          "isMut": true,
          "isSigner": true
        },
        {
          "name": "account",
          "isMut": true,
          "isSigner": false
        },
        {
          "name": "systemProgram",
          "isMut": false,
          "isSigner": false
        }
      ],
      "args": []
    },
    {
      "name": "testRelation",
      "accounts": [
        {
          "name": "myAccount",
          "isMut": false,
          "isSigner": false
        },
        {
          "name": "account",
          "isMut": false,
          "isSigner": false,
          "relations": [
            "my_account"
          ]
        },
        {
          "name": "nested",
          "accounts": [
            {
              "name": "myAccount",
              "isMut": false,
              "isSigner": false
            },
            {
              "name": "account",
              "isMut": false,
              "isSigner": false,
              "relations": [
                "my_account"
              ]
            }
          ]
        }
      ],
      "args": []
    }
  ],
  "accounts": [
    {
      "name": "MyAccount",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "myAccount",
            "type": "publicKey"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    }
  ]
}