Skip to content

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

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}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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