Skip to main content
Version: 2.0

Request bind between profile of two addresses

POSThttps://authapi.moralis.io/bind/request

Request for message to bind profile that is belong to the two addresses<br> All profiles under the addresses will be bound and new profile will be generated.

BODY PARAM
addressesobjectrequired
An array of addresses that needs to be bind
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)
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({
"addresses": {
"blockchainType": "evm",
"address": "0x57af6B90c2237d2F888bf4CAe56f25FE1b14e531",
"publicKey": "0xfb2853744bb8afd58d9386d1856afd8e08de135019961dfa3a10d8c9bf83b99d"
}
})
};

fetch('https://authapi.moralis.io/bind/request', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"messages": [
""
]
}