Get Wallet Cross Chain Unspents

get/api/v2/{coin}/wallet/{walletId}/crossChainUnspents

Returns atomic cross-chain unspents that can be imported by the wallet. Supported coins: AVAX.

Path Parameters

  • coinstringRequired
    A cryptocurrency symbol or token ticker symbol
    Example: btc
    Min length: >= 1 characters
  • walletIdstringRequired
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$
    Min length: >= 1 characters

Query Parameters

  • sourceChainstring
    Returns unspents exported from the source chain. If not provided, returns outputs from all chains.

200 Response

Array of
unspent object required
outputID number required
Type ID for this output.
Example: 7
amount string required
Amount as a BigNumber string.
Example: 2000000
txid string required
Transaction ID of this unspent.
Example: 2WW4Z9R9jdUSR1uheJ1rGuLUNXjipXESGknGWrkqx7KUU1YKV5
threshold number required
Number of signatures required to unlock UTXO.
Example: 1
addresses array[string] required
Addresses tied to the UTXO for the signatures.
Example: ["C-fuji167u3leuup654jdea3euggkhh82ta53jer3ttf4","C-fuji19vy09dn76mvt55r0x2d3ch2jrr8z6lgp80vzlj","C-fuji1idynny22nx91z7mujpwadmjy930yjqa040zdjh0w"]
outputidx string required
Index of the output in the transaction.
Example: 1
locktime string required
Time that the UTXO is unlocked.
Example: 0
sourceChain string required
The source chain
destinationChain string required
The destination chain
fromWallet string required
Public ID of the wallet (in the source chain) that created the cross-chain output.
Example: 6386565affdf48cb812ca1f0ed49a621
toWallet string required
Public ID of the wallet (in the destination chain) that's the target recipient of the cross-chain transfer.
Example: 6386565affdf48cb812ca1f0ed49a621
toAddress string required
Addresses (in the destination chain) that are target recipients of the cross-chain transfer.
Example: 0x125c4451c870f753265b0b1af3cf6ab88ffe4657

400 Response

One of
name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

403 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

404 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id