POST
/
api
/
v1
/
erc6551
/
create
curl --location --request POST 'https://groupos.xyz/api/v1/erc6551/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
    "nft": {
      "chainId": 5,
      "contractAddress": "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d",
      "tokenId": "12692"
    }
}'
{
  "success": true,
  "accountAddress": "0x3a31f58294bdcB59653ea19ec651f92e8e5f4A8c",
  "transactionHash": "0x5f4691a7fba52b04662b2598eea37993b93a278fc26db724f7cc630b13756739",
  "transactionUrl": "https://polygonscan.com/tx/0x5f4691a7fba52b04662b2598eea37993b93a278fc26db724f7cc630b13756739"
}

How to create an NFT Account

You can add smart accounts to any NFTs on supported EVM chains. This route will deploy a smart contract account to the provided NFT and return the new account’s address. You can query the address of this account prior to creation by using the Query Account API.

Body

nft
object
required

The NFT to bound the new Account to.

Response

success
boolean

Indicates whether the call was successful.

accountAddress
string

Address of the newly created account. Note that the transaction still needs to be confirmed before the account is officially created.

transactionHash
string

Transaction hash for the newly created token.

transactionUrl
string

Wraps transactionHash with the appropriate network-specific URL for convenience.