Skip to main content
POST
/
v1
/
swap-comment
/
{id}
/
copyswap
Create Copyswap Intent
curl --request POST \
  --url https://api.clicker.xyz/v1/swap-comment/{id}/copyswap \
  --header 'Content-Type: application/json' \
  --data '
{
  "actorAddress": "0xa4e221aa5a7ba51b5d5c7d5c923bfb9bcebcb252",
  "actorAddresses": [
    "0xa4e221aa5a7ba51b5d5c7d5c923bfb9bcebcb252"
  ],
  "tokenAddress": "0xa4e221aa5a7ba51b5d5c7d5c923bfb9bcebcb252",
  "chain": "ethereum"
}
'
{
  "intentIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
Required string length: 36

Body

application/json
tokenAddress
string
default:0xa4e221aa5a7ba51b5d5c7d5c923bfb9bcebcb252
required

The address / public key.

chain
enum<string>
required
Available options:
ethereum,
optimism,
polygon,
arbitrum,
zora,
base,
zero,
solana,
hyperliquid
actorAddress
string
default:0xa4e221aa5a7ba51b5d5c7d5c923bfb9bcebcb252

The address / public key.

actorAddresses
string[]

Multiple addresses of actors performing the copy swap

The address / public key.

Response

200

intentIds
string[]
required

The IDs of the copyswap intents created