curl --request POST \
--url https://mpc.hex-api.app/bridge/register \
--header 'Content-Type: application/json' \
--data '
{
"intent_account": "alice.near"
}
'
{
"status": "ok",
"intent_account": "alice.near",
"deposit_hash": "6QPkTPp7EKZytMtEuvRmqGBBMMuwf4rrX4JjAoiuCYnT",
"legacy_hash": "8954A4odzWf5YXmUmmGFpjo68ywJk6Jw6PyBf7LfKUMt"
}
Registry
Register an account's deposit receivers
Answers, and keeps, the receivers a deposit to intent_account in NEAR Intents carries on its source chain: deposit_hash, base58 of sha256 of {"account_id":"intents.near","msg":"{\"receiver_id\":\"<account>\"}"} (what omni rebuilds), and legacy_hash, base58 of sha256("intents.near" ‖ msg) (old deposits). The backend’s auto_deposit_register. The account is normalized: an EVM address or a NEAR account is lowercased, a base58 32-byte key (a Solana address) becomes its hex implicit account. Without the database, the hashes are still answered with status: not_recorded.
POST
/
bridge
/
register
curl --request POST \
--url https://mpc.hex-api.app/bridge/register \
--header 'Content-Type: application/json' \
--data '
{
"intent_account": "alice.near"
}
'
{
"status": "ok",
"intent_account": "alice.near",
"deposit_hash": "6QPkTPp7EKZytMtEuvRmqGBBMMuwf4rrX4JjAoiuCYnT",
"legacy_hash": "8954A4odzWf5YXmUmmGFpjo68ywJk6Jw6PyBf7LfKUMt"
}
Body
application/json
- Option 1
- Option 2
intent_account, or intent_id (the old backend's name).
Response
The account's receivers.