REST APIWallet & TransactWallet

GET

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

Path Params

  • coin string required
    A cryptocurrency symbol or token ticker symbol

    at least 1 characters

  • walletId string required

    at least 1 characters · matches ^[0-9a-f]{32}$

Query Params

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

Responses

200
OK

Response Body

array of objects

  • unspent object required
    unspent object
    • outputID number required
      Type ID for this output.
    • amount string required
      Amount as a BigNumber string.
    • txid string required
      Transaction ID of this unspent.
    • threshold number required
      Number of signatures required to unlock UTXO.
    • addresses array of strings required
    • outputidx string required
      Index of the output in the transaction.
    • locktime string required
      Time that the UTXO is unlocked.
  • 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.
  • toWallet string required
    Public ID of the wallet (in the destination chain) that's the target recipient of the cross-chain transfer.
  • toAddress string required
    Addresses (in the destination chain) that are target recipients of the cross-chain transfer.
400
Bad Request

Response Body

ONE OF

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
403
Forbidden

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
404
Not Found

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id