Skip to main content
POST
/
v1
/
profile
/
{address}
/
proof
Validate TON proof for given account address
curl --request POST \
  --url https://backend.swap.coffee/v1/profile/{address}/proof \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "public_key": "<string>",
  "wallet_state_init": "aSDinaTvuI8gbWludGxpZnk=",
  "proof": {
    "timestamp": 123,
    "domain_len": 123,
    "domain_val": "<string>",
    "payload": "<string>",
    "signature": "<string>"
  }
}
'
{
  "error": "<string>"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

address
string
required
Example:

"UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV"

Body

application/json
public_key
string
required
wallet_state_init
file
required

Base64-encoded initial state. Must be retrieved from ton-connect.

proof
object
required

Response

ok