Skip to content

Feature Request: Specify an AccountID instead of just "str" #16

@MartinThoma

Description

@MartinThoma

In a couple of places you could specify that a field should contain a stellar account id, e.g. PaymentOperation.from_ and PaymentOperation.to:

from pydantic import ConstrainedStr

class AccountId(ConstrainedStr):
    regex = "G[A-Za-z0-9]{55}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions