---
updatedAt: 2025-05-19T20:52:22.000Z
agentTools:
  projectIndex: https://docs.arianee.org/llms.txt
---

# Manage Digital Passport

Methods related to digital passport data collection.

## Retrieve owned digital passport(s) for a user

Retrieve the digital passports owned by a user in the wallet associated.

#### Method

```javascript Method
wallet.smartAsset.getOwned(onlyFromBrands?, i18nStrategy?:useLanguages)
```

| Parameter        | Type                | Required | Description                                                                                    |
| :--------------- | :------------------ | :------- | :--------------------------------------------------------------------------------------------- |
| `language`       | `en-US`, `fr-FR`... | ❌        | Language(s) returned in order of preference.                                                   |
| `onlyFromBrands` | String              | ❌        | Allows to return digital passports owned by the user and issued by the issuer's identity only. |

#### Return Payload

`promise` returns an `array` with the digital passport's information.

| Parameter                       | Description                                                              |
| :------------------------------ | :----------------------------------------------------------------------- |
| `ArianeeProductCertificateI18N` | [Digital passport Schema](https://docs.arianee.org/docs/nft-schema).                               |
| `BlockchainEvent[]`             | Gathering of transaction events of the token recorded on the blockchain. |
| `Event[]`                       | [Event Schema](https://docs.arianee.org/docs/event-schema).                                        |

```json Example
[
	{
    data: {
      certificateId: '58824256',
      content: ArianeeProductCertificateI18N,
      rawContent: ArianeeProductCertificateI18N,
      blockchainEvents: BlockchainEvent[],
      imprint: '0xce917f8d652187e7bf162b2c05d4b5439cef04142795eb6e5d2283b6193b8e88',
      isAuthentic: true,
      isRequestable: false,
      issuer: '0x90d181a3e977E8CcD7822B711Bb3A83E79beaEFF',
      owner: '0xa9bc90d24d0b8495043ab5857455444630028caf',
      protocol: { name: "testnet"; chainId: 77 }
    },
    arianeeEvents: Event[]
  }
]
```

***

## Retrieve digital passport from ID

Retrieve a specific digital passport.

#### Method

```javascript Method
wallet.smartAsset.get(protocol, {id: nftId, passphrase?: passphrase}, i18nStrategy?:useLanguages)
```

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Required
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `nftId`
      </td>

      <td>
        Number
      </td>

      <td>
        ✅
      </td>

      <td>
        Identification number of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `passphrase`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        A passphrase of the digital passport.\
        *Param optional is you are the owner of the digital passport.*
      </td>
    </tr>

    <tr>
      <td>
        `protocol`
      </td>

      <td>
        `mainnet` or `testnet`
      </td>

      <td>
        ✅
      </td>

      <td>
        Blockchain network of the digital passport ID.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        `en-US`, `fr-FR`...
      </td>

      <td>
        ❌
      </td>

      <td>
        Language(s) returned in order of preference.
      </td>
    </tr>
  </tbody>
</Table>

**Result:** `promise` returns an `object` with the digital passport information.

| Parameter                       | Description                                                              |
| :------------------------------ | :----------------------------------------------------------------------- |
| `ArianeeProductCertificateI18N` | [Digital Passport Schema](https://docs.arianee.org/docs/nft-schema).                               |
| `BlockchainEvent[]`             | Gathering of transaction events of the token recorded on the blockchain. |
| `Event[]`                       | [Event Schema](https://docs.arianee.org/docs/event-schema).                                        |

```json Example
{
    data: {
      certificateId: '58824256',
      content: ArianeeProductCertificateI18N,
      rawContent: ArianeeProductCertificateI18N,
      blockchainEvents: BlockchainEvent[],
      imprint: '0xce917f8d652187e7bf162b2c05d4b5439cef04142795eb6e5d2283b6193b8e88',
      isAuthentic: true,
      isRequestable: false,
      issuer: '0x90d181a3e977E8CcD7822B711Bb3A83E79beaEFF',
      owner: '0xa9bc90d24d0b8495043ab5857455444630028caf',
      protocol: { name: "testnet"; chainId: 77 }
    },
    arianeeEvents: Event[]
  }
```

***

## Retrieve digital passport from the link

Retrieve the content and data from the deep link of a specific digital passport.

#### Method

```javascript Method
wallet.smartAsset.getFromLink(link, resolveFinalNft?, i18nStrategy?)
```

| Parameter         | Type                | Required | Description                                                                                               |
| :---------------- | :------------------ | :------- | :-------------------------------------------------------------------------------------------------------- |
| `link`            | String              | ✅        | Deeplink of the digital passport → `https://arian.ee/tokenId,passphrase`                                  |
| `resolveFinalNft` | Boolean             | ✅        | - `true`: try to add the Arianee Access Token in the request.- `false`: get the landing digital passport. |
| `language`        | `en-US`, `fr-FR`... | ❌        | Language(s) returned in order of preference.                                                              |

#### Return Payload

`promise` returns an `object` with the NFT information.

| Parameter                       | Description                                                              |
| :------------------------------ | :----------------------------------------------------------------------- |
| `ArianeeProductCertificateI18N` | [Digital Passport Schema](https://docs.arianee.org/docs/nft-schema).                               |
| `BlockchainEvent[]`             | Gathering of transaction events of the token recorded on the blockchain. |
| `Event[]`                       | [Event Schema](https://docs.arianee.org/docs/event-schema).                                        |

```json Example
{
    data: {
      certificateId: '58824256',
      content: ArianeeProductCertificateI18N,
      rawContent: ArianeeProductCertificateI18N,
      blockchainEvents: BlockchainEvent[],
      imprint: '0xce917f8d652187e7bf162b2c05d4b5439cef04142795eb6e5d2283b6193b8e88',
      isAuthentic: true,
      isRequestable: false,
      issuer: '0x90d181a3e977E8CcD7822B711Bb3A83E79beaEFF',
      owner: '0xa9bc90d24d0b8495043ab5857455444630028caf',
      protocol: { name: "testnet"; chainId: 77 }
    },
    arianeeEvents: Event[]
  }
```

***

## Create ownership request link

#### Method

```javascript Method
wallet.smartAsset.createRequestLink(network, tokenId, passphrase?)
```

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Required
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `network`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Network of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `tokenId`
      </td>

      <td>
        Number
      </td>

      <td>
        ✅
      </td>

      <td>
        Arianee token ID of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `passphrase`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Token request passphrase.\
        *This param is optional if you are the digital passport owner.*
      </td>
    </tr>
  </tbody>
</Table>

```javascript Example
const wallet = new Wallet({ chainType: 'mainnet' });
const nft = await wallet.smartAsset.getOwned();
const proofLink = await nft[0].createProofLink();
```

#### Return Payload

The ownership link is returned.

***

## Create proof link

#### Method

```javascript Method
wallet.smartAsset.createProofLink(network, tokenId, passphrase?)
```

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Required
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `network`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Network of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `tokenId`
      </td>

      <td>
        Number
      </td>

      <td>
        ✅
      </td>

      <td>
        Arianee token ID of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `passphrase`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Token request passphrase.\
        *This param is optional if you are the digital passport owner.*
      </td>
    </tr>
  </tbody>
</Table>

```javascript Example
const wallet = new Wallet({ chainType: 'mainnet' });
const nft = await wallet.smartAsset.getOwned();
const proofLink = await nft[0].createProofLink();
```

#### Return Payload

The proof of ownership link is returned.

***

## Claim digital passport

#### Method

```javascript Method
wallet.smartAsset.claim(network, tokenId, passphrase, receiver?)
```

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Required
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `network`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Network of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `tokenId`
      </td>

      <td>
        Number
      </td>

      <td>
        ✅
      </td>

      <td>
        Arianee token ID of the digital passport.
      </td>
    </tr>

    <tr>
      <td>
        `passphrase`
      </td>

      <td>
        String
      </td>

      <td>
        ✅
      </td>

      <td>
        Token request passphrase.\
        *This param is optional if you are the digital passport owner.*
      </td>
    </tr>

    <tr>
      <td>
        `receiver`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Recipient wallet of the digital passport.
      </td>
    </tr>
  </tbody>
</Table>

```javascript Example
const wallet = new Wallet({ chainType: 'mainnet' });
const nft = await wallet.smartAsset.getFromLink("https://test.arian.ee/762482926,bnj9vdx3kbhj");
await nft.claim();
```

#### Return Payload

The transaction request is sent to the blockchain.

#### Get started with Arianee's recipe 🚀

<TutorialTile backgroundColor="#4d4d4d" emoji="🔖" id="6718f5c0f0c04600209dc2a5" link="https://docs.arianee.org/v2.2/recipes/claim-nft" slug="claim-nft" title="Claim NFT" />

***

## Transfer digital passport

Transfer a digital passport from the owner's wallet to another.

#### Method

```javascript Method
wallet.smartAsset.transfer(receiver: string)
```

| Parameter  | Type   | Required | Description                         |
| :--------- | :----- | :------- | :---------------------------------- |
| `receiver` | String | ✅        | The wallet address of the receiver. |

#### Return Payload

`promise` returns the transaction receipt.