Developer Hub
🔮 For applications
Toolkit
Utils
getCashout

Returns the details of the created cashout order.

ℹ️

You can find more information Here.

Usage

import { getCashout } from '@azuro-org/toolkit'
 
 
const cashout = await getCashout({
  chainId: 137,
  orderId: '...',
})

Props

{
  chainId: ChainId
  orderId: string // created cashout order id
}
type ChainId = 100 | 137 | 80002 | 88888 | 88882

Return Value

type GetCashoutResponse = {
  txHash: string // transaction hash
} & CreateCashoutResponse
 
type CreateCashoutResponse = {
  id: string // cashout id
  state: CashoutState // cashout state
  errorMessage?: string
}
 
enum CashoutState {
  Processing = 'PROCESSING',
  Accepted = 'ACCEPTED',
  Rejected = 'REJECTED',
  Open = 'OPEN'
}