Skip to main content
Version: 2.2

Request to remove bind of an address from a profile

POSThttps://authapi.moralis.io/bind/remove
BODY PARAM
blockchainTypestringrequired
The chain in which the address belongs to
addressstringrequired
Address performing the signing conformant to capitalization encoded checksum specified in EIP-55 where applicable.
publicKeystring
Public key performing the signing conformant. (This is only needed for Aptos address)
profileIdstringrequired
Unique identifier with a length of 66 characters
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'POST',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
"blockchainType": "evm",
"address": "0x57af6B90c2237d2F888bf4CAe56f25FE1b14e531",
"publicKey": "0xfb2853744bb8afd58d9386d1856afd8e08de135019961dfa3a10d8c9bf83b99d",
"profileId": "0xbfbcfab169c67072ff418133124480fea02175f1402aaa497daa4fd09026b0e1"
})
};

fetch('https://authapi.moralis.io/bind/remove', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"message": "Please sign this message to unbind:\nAddress: 0x6ed338bcB610640e81465FCfb9894DDfA354Cc91\nfrom\nProfile Id:\n- 0x0b2bbac1251651c0cbbdbbb29fed5a03adc8b05a2a9eb10a02aaa489b9c1f8ff\nNonce: 5pXWu7aGkY2J7II0X"
}