Skip to main content
POST
/
passport-profile
/
v2
/
linked-wallets
Link wallet v2
curl --request POST \
  --url https://api.sandbox.immutable.com/passport-profile/v2/linked-wallets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "io.metamask",
  "wallet_address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "signature": "<string>",
  "nonce": "<string>"
}
'
{
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "type": "MetaMask",
  "created_at": "2021-08-31T00:00:00Z",
  "updated_at": "2021-08-31T00:00:00Z",
  "clientName": "Passport Dashboard",
  "name": "Test"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Link wallet V2 request

type
string
required

This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide "External". If using WalletConnect then provide "WalletConnect".

Maximum string length: 32
Example:

"io.metamask"

wallet_address
string
required

The address of the external wallet being linked to Passport

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

signature
string
required

The EIP-712 signature

nonce
string
required

A unique identifier for the signature

Response

OK

Linked wallet

address
string
required

Ethereum address

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

type
string
required

Wallet type

Example:

"MetaMask"

created_at
string<date-time>
required

Created at

Example:

"2021-08-31T00:00:00Z"

updated_at
string<date-time>
required

Created at

Example:

"2021-08-31T00:00:00Z"

clientName
string
required

Name of client that linked the wallet

Example:

"Passport Dashboard"

name
string

Name

Example:

"Test"