## API

| Method Name                            | Request Type                                                                         | Response Type                                                                        | Description                        |
|----------------------------------------|--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|------------------------------------|
| GetUsernameProof                       | [UsernameProofRequest](https://docs.neynar.com/snapchain/grpcapi/usernameproof#UsernameProofRequest)  | [UserNameProof](https://docs.neynar.com/snapchain/grpcapi/usernameproof#UserNameProof)              | Gets username proof by name       |
| GetUserNameProofsByFid                | [FidRequest](https://docs.neynar.com/snapchain/grpcapi/usernameproof#FidRequest)      | [UsernameProofsResponse](https://docs.neynar.com/snapchain/grpcapi/usernameproof#UsernameProofsResponse) | Gets all username proofs for an FID |

## UsernameProofRequest

| Field | Type   | Label | Description                  |
|-------|--------|-------|------------------------------|
| name  | bytes  |       | Username to get proof for    |

## UsernameProofsResponse

| Field  | Type             | Label  | Description                      |
|--------|------------------|--------|----------------------------------|
| proofs | UserNameProof    | repeated | Array of username proofs         |

## UserNameProof

| Field      | Type             | Label  | Description                      |
|------------|------------------|--------|----------------------------------|
| timestamp  | uint64           |        | Timestamp of the proof           |
| name       | bytes            |        | Username being proved            |
| owner      | bytes            |        | Owner address                    |
| signature  | bytes            |        | Cryptographic signature          |
| fid        | uint64           |        | Farcaster ID associated with the proof |
| type       | UserNameType     |        | Type of username proof           |
