Skip to content
Timothy Wang edited this page Feb 25, 2019 · 4 revisions

Endpoint

https://cr7j581ggh.execute-api.us-east-1.amazonaws.com/Prod

Send

  • request
{
      clientId: [string],
      sender: [string], // sender email
      destination: [string], // destination email
      transferAmount: [string], // amount in normal unit
      cryptoType: [string,] // crypto type,
      data: [string], // base64-encoded encrypted escrow wallet
      sendTxHash: [string], // send tx hash
}
  • response
{
      sender: [string], // sender email
      destination: [string], // destination email
      transferAmount: [string], // amount in normal unit
      cryptoType: [string], // crypto type,
      sendingId: [string], // transfer id for sender, required for transfer cancellation
      sendTxHash: [string], // send tx hash
      sendTimestamp: [int], // unit timestamp for the action
}

Receive

  • request
{
  clientId: [string],
  receivingId: [string], // transfer id for receiver, required for accepting the transfer
  receiveTxHash: [string], // receive tx hash
}
  • response
{
      sender: [string], // sender email
      destination: [string], // destination email
      transferAmount: [string], // amount in normal unit
      cryptoType: [string], // crypto type,
      sendTxHash: [string], // send tx hash
      sendTimestamp: [int], // unit timestamp for the action
      receivingId: [string], // transfer id for receiver, required for accepting the transfer
      receiveTxHash: [string], // receive tx hash
      receiveTimestamp: [int], // unit timestamp for the action
}

Cancel

  • request
{
  clientId: [string],
  sendingId: [string], // transfer id for sender, required for cancellation
  cancelTxHash: [string], // cancellation tx hash
}
  • response
{
      sender: [string], // sender email
      destination: [string], // destination email
      transferAmount: [string], // amount in normal unit
      cryptoType: [string], // crypto type,
      sendTxHash: [string], // send tx hash
      sendTimestamp: [int], // unit timestamp for the action
      cancelTxHash: [string], // cancellation tx hash
      cancelTimestamp: [int], // unit timestamp for the action
}
Clone this wiki locally