# ResourceInfo

> Metadata about the protected resource in an x402 payment challenge.

```ts
import type { ResourceInfo } from 'x402-avm-js';
```

```ts
export interface ResourceInfo {
  url: string;
  description?: string;
  mimeType?: string;
}
```

Metadata about the protected resource in an x402 payment challenge.

## Properties

- `url` (`string`, required):
URL of the protected resource.

- `description` (`string`):
Human-readable description of the resource.

- `mimeType` (`string`):
MIME type of the resource's response.

## Example

```ts
const resource: ResourceInfo = {
  url: 'https://api.example.com/v1/tools/translate',
  description: 'Machine translation service',
  mimeType: 'application/json'
};
```

Source: [src/index.ts](https://github.com/x402-avm/x402-avm-js/blob/main/src/index.ts#L71)

Source: https://x402-avm.github.io/reference/js/resource-info
