There is an SDK for integrating this service: Intents SDK on GitHub. This SDK is under active development and may introduce breaking changes.
How it works
JSON-RPC Endpoint
POST:https://bridge.chaindefuser.com/rpc
API Reference
supported_tokens
Returns a list of tokens supported by the service for each network.Optional chain filter (e.g.,
["eth:1", "btc:mainnet"])Response fields
Response fields
For each token:
defuse_asset_identifier- Unique asset ID (format:CHAIN_TYPE:CHAIN_ID:ADDRESS)near_token_id- Token ID in the NEAR blockchaindecimals- Token precisionasset_name- Token namemin_deposit_amount- Minimum amount to trigger transfermin_withdrawal_amount- Minimum amount for withdrawalwithdrawal_fee- Fee charged for withdrawals
Request
Response
deposit_address
Returns the address for depositing supported tokens or native currency.Your NEAR Intents account (e.g.,
user.near)Network type and chain ID (e.g.,
eth:42161 for Arbitrum, btc:mainnet for Bitcoin)Request
Response
recent_deposits
Returns information on recent deposits for an account.Your NEAR Intents account
Network type and chain ID
Response fields
Response fields
For each deposit:
tx_hash- Transaction hash (EVM networks only)chain- Network type and chain IDdefuse_asset_identifier- Token identifierdecimals- Token decimalsamount- Asset amountaccount_id- NEAR Intents accountaddress- Deposit addressstatus-COMPLETED,PENDING, orFAILED
Request
Response
withdrawal_status
Returns the status of a withdrawal.Hash of the NEAR transaction where
ft_burn event occurredResponse fields
Response fields
status-COMPLETED,PENDING,FAILED,NOT_FOUND,AWAITING,REJECTED,RETURNING, orRETURNEDdata.tx_hash- Burn transaction hash on NEARdata.transfer_tx_hash- Transfer transaction hash on destination chaindata.chain- Network type and chain IDdata.defuse_asset_identifier- Token identifierdata.decimals- Token decimalsdata.amount- Asset amountdata.account_id- User accountdata.address- Withdrawal address
Request
Response
notify_deposit
Optional method to notify the service about your deposit for faster processing.Address you received from the API
Hash of your deposit transaction
Request
withdrawal_estimate
Estimate fees for a withdrawal transaction.Blockchain network (e.g.,
eth:1)Token identifier (e.g.,
eth.omft.near)Recipient address
Response fields
Response fields
tokenAddress- Token contract addressuserAddress- User’s addresswithdrawalFee- Estimated feewithdrawalFeeDecimals- Fee decimal precisiontoken- Token information
Request
Response