> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evav.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ID

> Get an items marketplace ID

### Get Marketplace ID by item attributes

<CodeGroup>
  ```typescript example theme={null}
  import { Marketplace } from '@evav/marketplace'

  const itemId = Marketplace.getId({
    chainType,
    chainId,
    collectionAddress,
    tokenId,
  })
  ```

  ```typescript interface theme={null}
  import { GetIdInput } from './getIdInput'

  static getId(itemAttributes: GetIdInput): string
  ```

  ```typescript getIdInput.ts theme={null}
  export interface GetIdInput {
    chainType?: 'Eth' // defaults to ethereum
    chainId?: 'base' // defaults base
    collectionAddress: Address
    tokenId: bigint
  }
  ```
</CodeGroup>

### Parse Marketplace ID to get item attributes

<CodeGroup>
  ```typescript example theme={null}
  import { Marketplace } from '@evav/marketplace'

  const itemId = Marketplace.parseId(itemId)
  ```

  ```typescript interface theme={null}
  import { GetIdInput } from './getIdInput'

  static parseId(itemId: string): GetIdInput
  ```

  ```typescript getIdInput.ts theme={null}
  export interface GetIdInput {
    chainType?: 'Eth' // defaults to ethereum
    chainId?: 'base' // defaults base
    collectionAddress: Address
    tokenId: bigint
  }
  ```
</CodeGroup>
