NEAR Intents
  • Overview
  • Verifier
    • Account Abstraction
    • Example Transactions
  • Message Bus
    • API
    • Market Makers
  • PoA bridge
  • Examples
  • FAQs
  • Architecture
    • Intent flow
    • Deposits & Withdrawals
  • 1Click API
Powered by GitBook
On this page
  • Is there a testnet deployment?
  • Is there support for native NEAR deposits?
  • tx_hash in the recent_deposit response for all SOL deposits is empty
  • Is there a reason why my UTXOs aren't being swept on the BTC ? I sent 5,000 sats
  • How does the deposit process work?
  • ETH-connector migration

FAQs

Frequently Asked Questions

PreviousExamplesNextArchitecture

Last updated 1 month ago

Is there a testnet deployment?

There's no testnet deployment and no plans for it. We recommend testing on NEAR mainnet with using separate dev/test NEAR accounts.

Is there support for native NEAR deposits?

Only ft_transfer_call can be used to deposit NEP-141 tokens from Near to intents.near :

<TOKEN_ACCOUNT_ID>::ft_transfer_call({
  "receiver_id": "intents.near",
  "amount": "1234",
  "msg": "{\"receiver_id\": \"<ACCOUNT_ID>\"}"
})

Here is an example for that. Parameter msg can also be empty, so that funds will be deposited to sender_id (i.e. caller of ft_transfer_call). Here is an example of such

tx_hash in the recent_deposit response for all SOL deposits is empty

This information is not available for Solana because the mechanism of deposit tracking works a bit differently there.

Is there a reason why my UTXOs aren't being swept on the BTC ? I sent 5,000 sats

This is a very small amount that is considered to be "dust" and there is a special business logic to process such small amount.

How does the deposit process work?

The deposit process begins once the transfer transaction on the foreign network has been completed. When the balance of the user's unique deposit address has become positive our indexer generates a deposit event and assigns it a PENDING status.

The next step is collecting the current tokens in storage. The result of this process will be either a COMPLETED or FAILED status. Deposits with a FAILED status are currently handled manually and eventually updated to the COMPLETED status.

On EVM networks, deposits can bypass the PENDING status due to the faster processing and transfer completion times.

The data structure for the PENDING and FAILED statuses is identical to that of the COMPLETED status.

Regarding BTC deposits: If you want to make a deposit to an account that hasn’t yet been connected to the application - this is possible but requires extreme caution. You can request a deposit address by calling the bridge API (deposit_address) and specifying the account_id parameter. The account_id can be a NEAR account, an EVM address, or a SOL address to which you have access.

It is recommended starting with a small amount for experimentation. After the deposit is completed, you can connect wallet and check the tokens.

ETH-connector migration

Users can migrate in two ways:

  • {
      "token": "aurora", // legacy token
      "receiver_id": "intents.near", // deposit back
      "amount": "1234",
      "memo": "Migrate ETH: aurora -> eth.bride.near",
      "msg": "<USER_ACCOUNT_ID>", // recipient inside intents.near for eth.bridge.near tokens
    }
  • Via ft_withdraw intent with the same params as in above ^

Because of the split of ETH-connector, auroracontract now as a NEP-141 proxy to eth.bridge.near. This leads to some changes:

Firstly, ALL new deposits will be as eth.bridge.near, even if triggered from aurora smart-contract. Even from inside of Aurora Mainnet (example )! ALL withdrawals of legacy aurora will be received on Near as new eth.bridge.near.

Secondly, the migration of already deposited Eth@Near (aurora) can be done permissionlessly by withdrawing from intents.near and depositing it back right away. Luckily, it's possible to do that in a single tx thanks to patch on eth-connector side.

Via ft_withdraw() with following params:

The automatically detects legacy tokens on user's balance and prompts him to sign such migration intent.

receipt
tx
acts
treated
tx
this
tx
front-end