Skip to content

fee_recipient

FeeRecipient

Attributes:

Name Type Description
ethaddress str

An address on the execution (Ethereum 1) network. Example: 0xabcf8e0d4e9587369b2301d0790347320302cc09.

pubkey Union[Unset, str]

The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive. Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.

Source code in eth_2_key_manager_api_client/models/fee_recipient.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@attr.s(auto_attribs=True)
class FeeRecipient:
    """
    Attributes:
        ethaddress (str): An address on the execution (Ethereum 1) network. Example:
            0xabcf8e0d4e9587369b2301d0790347320302cc09.
        pubkey (Union[Unset, str]): The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded
            with 0x prefix, case insensitive._
             Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.
    """

    ethaddress: str
    pubkey: Union[Unset, str] = UNSET
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        ethaddress = self.ethaddress
        pubkey = self.pubkey

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "ethaddress": ethaddress,
            }
        )
        if pubkey is not UNSET:
            field_dict["pubkey"] = pubkey

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        ethaddress = d.pop("ethaddress")

        pubkey = d.pop("pubkey", UNSET)

        fee_recipient = cls(
            ethaddress=ethaddress,
            pubkey=pubkey,
        )

        fee_recipient.additional_properties = d
        return fee_recipient

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

ListFeeRecipientResponseData

Attributes:

Name Type Description
ethaddress str

An address on the execution (Ethereum 1) network. Example: 0xabcf8e0d4e9587369b2301d0790347320302cc09.

pubkey Union[Unset, str]

The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive. Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.

Source code in eth_2_key_manager_api_client/models/list_fee_recipient_response_data.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@attr.s(auto_attribs=True)
class ListFeeRecipientResponseData:
    """
    Attributes:
        ethaddress (str): An address on the execution (Ethereum 1) network. Example:
            0xabcf8e0d4e9587369b2301d0790347320302cc09.
        pubkey (Union[Unset, str]): The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded
            with 0x prefix, case insensitive._
             Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.
    """

    ethaddress: str
    pubkey: Union[Unset, str] = UNSET
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        ethaddress = self.ethaddress
        pubkey = self.pubkey

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "ethaddress": ethaddress,
            }
        )
        if pubkey is not UNSET:
            field_dict["pubkey"] = pubkey

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        ethaddress = d.pop("ethaddress")

        pubkey = d.pop("pubkey", UNSET)

        list_fee_recipient_response_data = cls(
            ethaddress=ethaddress,
            pubkey=pubkey,
        )

        list_fee_recipient_response_data.additional_properties = d
        return list_fee_recipient_response_data

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

ListFeeRecipientResponse

Attributes:

Name Type Description
data ListFeeRecipientResponseData
Source code in eth_2_key_manager_api_client/models/list_fee_recipient_response.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@attr.s(auto_attribs=True)
class ListFeeRecipientResponse:
    """
    Attributes:
        data (ListFeeRecipientResponseData):
    """

    data: "ListFeeRecipientResponseData"
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        data = self.data.to_dict()

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "data": data,
            }
        )

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        from eth_2_key_manager_api_client.models.list_fee_recipient_response_data import ListFeeRecipientResponseData

        d = src_dict.copy()
        data = ListFeeRecipientResponseData.from_dict(d.pop("data"))

        list_fee_recipient_response = cls(
            data=data,
        )

        list_fee_recipient_response.additional_properties = d
        return list_fee_recipient_response

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

SetFeeRecipientRequest

Attributes:

Name Type Description
ethaddress str

An address on the execution (Ethereum 1) network. Example: 0xabcf8e0d4e9587369b2301d0790347320302cc09.

Source code in eth_2_key_manager_api_client/models/set_fee_recipient_request.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@attr.s(auto_attribs=True)
class SetFeeRecipientRequest:
    """
    Attributes:
        ethaddress (str): An address on the execution (Ethereum 1) network. Example:
            0xabcf8e0d4e9587369b2301d0790347320302cc09.
    """

    ethaddress: str
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        ethaddress = self.ethaddress

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "ethaddress": ethaddress,
            }
        )

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        ethaddress = d.pop("ethaddress")

        set_fee_recipient_request = cls(
            ethaddress=ethaddress,
        )

        set_fee_recipient_request.additional_properties = d
        return set_fee_recipient_request

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties