C2F Docs v0
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Version: v0
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
Up
post /c2f/register/company
Registers a new company (c2fRegisterCompanyPost)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{ }
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
RegisterCompanyResponse
Up
post /c2f/register/device
Registers a new device (c2fRegisterDevicePost)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{ }
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
RegisterDeviceResponse
Up
post /c2f/trade/cancel
Cancel a trade by tradeId (c2fTradeCancelPost)
<p>Depending on the state you are in the trade may move to:</p>
<ul>
<li>Cancelled</li>
<li>NeedsRefund</li>
</ul>
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{ }
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
CancelTradeResponse
Up
post /c2f/trade/crypto-buyer-approve
Approve trade as Crypto Buyer (Receiving) (c2fTradeCryptoBuyerApprovePost)
Mores TradeStatus to NeedsSellerApproval
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{ }
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
ApproveTradeResponse
Up
post /c2f/trade/crypto-seller-approve
Approve trade as Crypto Seller (Sending) (c2fTradeCryptoSellerApprovePost)
Mores TradeStatus to NeedsDepositAddress
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{ }
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
ApproveTradeResponse
Up
post /c2f/trade/deposit
Get the deposit information for an escrow (c2fTradeDepositPost)
Crypto Seller ONLY endpoint
Using a tradeId, request the deposit info to escrow the cryptocurrency
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"address" : "address",
"redeemScript" : "redeemScript",
"amountCrypto" : ""
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
DepositResponse
Retrieves the full state of a trade by tradeId (c2fTradeInfoPost)
This is a huge json
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"requiredConfirmations" : 6,
"cryptoBuyerAccountId" : "1000951337",
"closingTxId" : "925b9cfa5de749add9b42293e76337d1dba0ab2d211cce5a8e385433ba4135be",
"escrowAddress" : "2N8vikwuSsozsQLe8nPKXpEdcM4ZU3RGUW2",
"initiatingAccountId" : "1000951337",
"amountFiat" : "",
"refundAddresses" : [ null, null ],
"cryptoSellerAccountId" : "1085441256",
"escrowRedeemScript" : "7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168",
"tradeDeadline" : 1595442022,
"escrowConfirmations" : 4,
"amountCrypto" : "",
"timeWithdrawalSigned" : 1595442022,
"escrowDeadline" : 1595442022,
"receivingAddresses" : [ {
"amount" : 0.5,
"address" : "tb1q7dmslhumu9hk96ukee44da7807w82ue4kud58w"
}, {
"amount" : 0.5,
"address" : "tb1q7dmslhumu9hk96ukee44da7807w82ue4kud58w"
} ],
"cryptoBuyerPubkey" : "cryptoBuyerPubkey",
"escrowTxId" : "7f827d4a3ae3b6e408fa1737f12f9dbfa2bb8fd79e0e3e63256a6e78310790a4",
"tradeStatus" : "",
"closingConfirmations" : 3,
"closingType" : "",
"timeCreated" : 1595442022,
"approvalDeadline" : 1595442022,
"escrowIndex" : 0,
"cryptoSellerPubkey" : "cryptoSellerPubkey"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
TradeInfoResponse
Up
post /c2f/trade/list-trades
Search for trades that satisfy the filter settings (c2fTradeListTradesPost)
Returns metadata of trades that satisfy the filer
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"trades" : [ {
"cryptoBuyerAccountId" : "cryptoBuyerAccountId",
"amountFiat" : "",
"cryptoSellerAccountId" : "cryptoSellerAccountId",
"timeCreated" : 1595442022,
"tradeId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status" : "",
"amountCrypto" : ""
}, {
"cryptoBuyerAccountId" : "cryptoBuyerAccountId",
"amountFiat" : "",
"cryptoSellerAccountId" : "cryptoSellerAccountId",
"timeCreated" : 1595442022,
"tradeId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status" : "",
"amountCrypto" : ""
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Trades Found
ListTradesResponse
Up
post /c2f/trade/new-crypto-buy-trade
New Trade - Receive Bitcoin (c2fTradeNewCryptoBuyTradePost)
Request a new trade to be started where you are receiving cryptocurrency
Moves state of trade to NeedsSellerApproval
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"tradeId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
NewTradeResponse
Up
post /c2f/trade/new-crypto-sell-trade
New Trade - Send Bitcoin (c2fTradeNewCryptoSellTradePost)
Request a new trade to be started where you are sending cryptocurrency
Moves state of trade to NeedsBuyerApproval
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"tradeId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
NewTradeResponse
Up
post /c2f/trade/post-refund
Send signature to refund from escrow (c2fTradePostRefundPost)
Crypto Seller ONLY endpoint
Consumes
This API call consumes the following media types via the request header:
Request body
Responses
200
Success
Up
post /c2f/trade/post-withdraw
Send signature to withdraw from escrow (c2fTradePostWithdrawPost)
Crypto Buyer ONLY endpoint
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"txId" : "txId"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
PostWithdrawResponse
Up
post /c2f/trade/start-refund
Request refund transaction information to sign (c2fTradeStartRefundPost)
Crypto Seller ONLY endpoint
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"escrowOutput" : 0,
"escrowRedeemScript" : "7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168",
"txnRefund" : "01000000000101e9b0b215e3287c1e840d50b21a65bde6d980feb4baef0a6672bf5133c98c2f07000000002322002038b0c01d109aa6ee1abc25e7c3b5631125d34441e00f46eec173cd3752d8378700000000018096980000000000160014f3770fdf9be16f62eb96ce6b56f7c77f9c7573350500490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102c27454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f521020180953818971d774f72cb0da2d48519902a0aedd708d76650b4ed585faffdfa52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103585ebcd616ebea1e6bf39ac9926ba4b609d3a65a534a3b222df42f769923121f52ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac045cb0455eb16800000000",
"escrowTxn" : "0200000001f65983bc08054052a58382327b8a1868da27a55ba49f4c5c6df5ee39454dfb660100000000fdffffff02689a98000000000017a914a6bb7a5f1b2d83aa8c0bcf33171806ca4f6abdc2871e102c0400000000160014c80f067849c7eb35daec886916da89ecbafa26dc7b651900"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
StartRefundResponse
Up
post /c2f/trade/start-withdraw
Request withdraw transaction information to sign (c2fTradeStartWithdrawPost)
Crypto Buyer ONLY endpoint
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"escrowOutput" : 0,
"escrowRedeemScript" : "7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168",
"txnSpend" : "01000000000101e9b0b215e3287c1e840d50b21a65bde6d980feb4baef0a6672bf5133c98c2f07000000002322002038b0c01d109aa6ee1abc25e7c3b5631125d34441e00f46eec173cd3752d8378700000000018096980000000000160014f3770fdf9be16f62eb96ce6b56f7c77f9c7573350500490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102c27454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f521020180953818971d774f72cb0da2d48519902a0aedd708d76650b4ed585faffdfa52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103585ebcd616ebea1e6bf39ac9926ba4b609d3a65a534a3b222df42f769923121f52ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac045cb0455eb16800000000",
"escrowTxn" : "0200000001f65983bc08054052a58382327b8a1868da27a55ba49f4c5c6df5ee39454dfb660100000000fdffffff02689a98000000000017a914a6bb7a5f1b2d83aa8c0bcf33171806ca4f6abdc2871e102c0400000000160014c80f067849c7eb35daec886916da89ecbafa26dc7b651900"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Success
StartWithdrawResponse
[ Jump to Methods ]
Table of Contents
ApproveTradeResponse
BigInteger
Blockchain
CancelTradeRequest
CancelTradeResponse
Coin
CoinAmount
CryptoBuyerApproveRequest
CryptoBuyerNewTradeRequest
CryptoSellerApproveRequest
CryptoSellerNewTradeRequest
DepositRequest
DepositResponse
FiatAmount
FiatType
ListTradesRequest
ListTradesResponse
NewTradeResponse
PostRefundRequest
PostWithdrawRequest
PostWithdrawResponse
ReceivingAddressInfo
RegisterCompanyRequest
RegisterCompanyResponse
RegisterDeviceRequest
RegisterDeviceResponse
StartRefundRequest
StartRefundResponse
StartWithdrawRequest
StartWithdrawResponse
TimeFilter
TradeDetails
TradeInfoRequest
TradeInfoResponse
TradeStatus
TransactionType
isPowerOfTwo (optional)
isZero (optional)
isOne (optional)
isEven (optional)
sign (optional)
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
value (optional)
Float Decimal format: float
example: 0.5
coin (optional)
BTC
LTC
BCH
ETH
USDC
example: BTC
receivingAddresses (optional)
pubkey (optional)
example: AmiXWn7luqeAaXurVnafA4nIVFDSC//duNbtJJBmzNH1
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
receivingAddresses (optional)
pubkey (optional)
example: AmiXWn7luqeAaXurVnafA4nIVFDSC//duNbtJJBmzNH1
accountId
String Initiator's Account ID. This account id will be validated against
the api key's account ids.
example: 1000951337
counterPartyAccountId
String Account ID of counter party
example: 1085441256
amountCrypto
Amount of crypto to trade
amountFiat
approvalDeadline (optional)
Long Absolute time after which if the counterparty has not approved the
deal the trade will be aborted. format: int64
example: 1595442022
escrowDeadline (optional)
Long Absolute time after which if the escrow has not been submitted to
the mempool by Alice the trade will be aborted. format: int64
example: 1595442022
tradeDeadline (optional)
Long Absolute time after which if Bob has not signed a withdrawal the
trade will be aborted. format: int64
example: 1595442022
requiredNumberOfConfirmations (optional)
Integer Number of confirmations on the withdrawal transaction to consider
the transaction finalized format: int32
example: 6
pubkey (optional)
example: AmiXWn7luqeAaXurVnafA4nIVFDSC//duNbtJJBmzNH1
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
accountId
String Initiator's Account ID. This account id will be validated against
the api key's account ids.
example: 1000951337
counterPartyAccountId
String Account ID of counter party
example: 1085441256
amountCrypto
Amount of crypto to trade
amountFiat
approvalDeadline (optional)
Long Absolute time after which if the counterparty has not approved the
deal the trade will be aborted. format: int64
example: 1595442022
escrowDeadline (optional)
Long Absolute time after which if the escrow has not been submitted to
the mempool by Alice the trade will be aborted. format: int64
example: 1595442022
tradeDeadline (optional)
Long Absolute time after which if Bob has not signed a withdrawal the
trade will be aborted. format: int64
example: 1595442022
requiredNumberOfConfirmations (optional)
Integer Number of confirmations on the withdrawal transaction to consider
the transaction finalized format: int32
example: 6
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
redeemScript (optional)
String Redeem script of escrow
address (optional)
String P2SH address of the escrow
amountCrypto (optional)
amount (optional)
Float Decimal format: float
example: 10000
fiat (optional)
USD
example: USD
A set of filters that returns trades that satisfy the filter
filterOnCreationTime (optional)
Filter on the creation time of a trade
filterOnStatus (optional)
filterOnAccountId (optional)
String Filter trades which involve a particular account id
signature (optional)
String Signature on TxnRefund Transaction
example: MEQCIBGmpKtQNR34L4Ew/x693QET2cqaznpXdKlglAMFyZDUAiAkO6xTtC3C8hGfImcutb3gKoKYT6F6CrRcoQnLGj1IbgE=
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
signature (optional)
String Signature on TxnSpend Transaction
example: MEQCIBGmpKtQNR34L4Ew/x693QET2cqaznpXdKlglAMFyZDUAiAkO6xTtC3C8hGfImcutb3gKoKYT6F6CrRcoQnLGj1IbgE=
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
amount (optional)
Float Decimal format: float
example: 0.5
address (optional)
example: tb1q7dmslhumu9hk96ukee44da7807w82ue4kud58w
Registers a particular company with C2F
email
String The company's email address for updates
and notifications. format: email
companyName
regToken
String Hashed registration token for the company generated
by the client.
companyId
String Unique identifier for a particular company
generated by the bank.
authToken
String Authentication token for a given request
provided by the bank through the client.
Registers a particular device with C2F
deviceId
String A unique identifier for the particular
device.
deviceName
String The user's name for the device.
regToken
String Hashed registration token for the company generated
by the client.
companyId
String Unique identifier for a particular company
generated by the bank.
authToken
String Authentication token for a given request
provided by the bank through the client.
refundAddresses (optional)
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
escrowTxn (optional)
String Hex-encoded EscrowTransaction object
example: 0200000001f65983bc08054052a58382327b8a1868da27a55ba49f4c5c6df5ee39454dfb660100000000fdffffff02689a98000000000017a914a6bb7a5f1b2d83aa8c0bcf33171806ca4f6abdc2871e102c0400000000160014c80f067849c7eb35daec886916da89ecbafa26dc7b651900
escrowOutput (optional)
Integer The output index of the escrow in the EscrowTransaction format: int32
example: 0
escrowRedeemScript (optional)
String Hex-encoded redeem script of the escrow
example: 7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168
txnRefund (optional)
String Hex-encoded RefundTransaction for the refunder to sign
example: 01000000000101e9b0b215e3287c1e840d50b21a65bde6d980feb4baef0a6672bf5133c98c2f07000000002322002038b0c01d109aa6ee1abc25e7c3b5631125d34441e00f46eec173cd3752d8378700000000018096980000000000160014f3770fdf9be16f62eb96ce6b56f7c77f9c7573350500490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102c27454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f521020180953818971d774f72cb0da2d48519902a0aedd708d76650b4ed585faffdfa52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103585ebcd616ebea1e6bf39ac9926ba4b609d3a65a534a3b222df42f769923121f52ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac045cb0455eb16800000000
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
escrowTxn (optional)
String Hex-encoded EscrowTransaction object
example: 0200000001f65983bc08054052a58382327b8a1868da27a55ba49f4c5c6df5ee39454dfb660100000000fdffffff02689a98000000000017a914a6bb7a5f1b2d83aa8c0bcf33171806ca4f6abdc2871e102c0400000000160014c80f067849c7eb35daec886916da89ecbafa26dc7b651900
escrowOutput (optional)
Integer The output index of the escrow in the EscrowTransaction format: int32
example: 0
escrowRedeemScript (optional)
String Hex-encoded redeem script of the escrow
example: 7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168
txnSpend (optional)
String Hex-encoded SpendTransaction for the withdrawer to sign
example: 01000000000101e9b0b215e3287c1e840d50b21a65bde6d980feb4baef0a6672bf5133c98c2f07000000002322002038b0c01d109aa6ee1abc25e7c3b5631125d34441e00f46eec173cd3752d8378700000000018096980000000000160014f3770fdf9be16f62eb96ce6b56f7c77f9c7573350500490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102c27454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f521020180953818971d774f72cb0da2d48519902a0aedd708d76650b4ed585faffdfa52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103585ebcd616ebea1e6bf39ac9926ba4b609d3a65a534a3b222df42f769923121f52ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac045cb0455eb16800000000
Allows specifying a time filter between [<code>Begin</code>, <code>End</code>] where <code>Begin</code>
and <code>End</code> are both Time in seconds from the epoch
begin (optional)
end (optional)
tradeId (optional)
status (optional)
amountCrypto (optional)
amountFiat (optional)
cryptoSellerAccountId (optional)
cryptoBuyerAccountId (optional)
timeCreated (optional)
Long Epoch Time format: int64
example: 1595442022
Enables a user or a partner to query information about the trade with
the specified Trade ID.
tradeId (optional)
UUID TradeId of the request in question, look up accountIds in the
AccountIdDBFilter. format: uuid
tradeStatus (optional)
Current status of the trade.
cryptoBuyerAccountId (optional)
String Account ID of the party selling fiat
example: 1000951337
cryptoSellerAccountId (optional)
String Account ID of the party selling crypto
example: 1085441256
initiatingAccountId (optional)
String Account id of the party that initiated the trade
example: 1000951337
amountCrypto (optional)
Amount of crypto being traded
amountFiat (optional)
Amount of fiat being traded
timeCreated (optional)
Long Date-time when this trade was created i.e. initiated and then
approved by the initiator format: int64
example: 1595442022
approvalDeadline (optional)
Long Date-time after which if the trade is not withdrawing the trade
will be aborted. In seconds after the epoch format: int64
example: 1595442022
escrowDeadline (optional)
Long The timelock of the the escrow after which the escape hatch can be
used format: int64
example: 1595442022
tradeDeadline (optional)
Long Date-time after which if the trade is not withdrawing the trade
will be aborted. In seconds after the epoch format: int64
example: 1595442022
timeWithdrawalSigned (optional)
Long Date-time after which the withdrawal was signed by Bob. In seconds
after the epoch format: int64
example: 1595442022
requiredConfirmations (optional)
Long Number of confirmations on the withdrawal transaction to consider
the transaction finalized format: int64
example: 6
cryptoBuyerPubkey (optional)
String Bob's Pubkey for spending the escrow to Bob
cryptoSellerPubkey (optional)
String Alice's Pubkey for refunding the escrow back to Alice
receivingAddresses (optional)
refundAddresses (optional)
escrowTxId (optional)
String The TXID of the transaction that creates the escrow output
example: 7f827d4a3ae3b6e408fa1737f12f9dbfa2bb8fd79e0e3e63256a6e78310790a4
escrowIndex (optional)
Integer The output index of the escrow output. Together with the TXID the
index uniquely defines an output format: int32
example: 0
escrowConfirmations (optional)
Long Number of confirmations the escrow transaction currently has format: int64
example: 4
closingTxId (optional)
String The TXID of the transaction that spends the escrow output to Bob
example: 925b9cfa5de749add9b42293e76337d1dba0ab2d211cce5a8e385433ba4135be
closingConfirmations (optional)
Long Number of confirmations the spent transaction currently has format: int64
example: 3
closingType (optional)
The type of the closing transaction
escrowAddress (optional)
example: 2N8vikwuSsozsQLe8nPKXpEdcM4ZU3RGUW2
escrowRedeemScript (optional)
String Redeem script for escrow output, hex encoded
example: 7454876352876352210268975a7ee5baa780697bab56769f0389c85450d20bffddb8d6ed249066ccd1f5210317107bb4a9766eba2667e9e272eceab4efca20a6665780dda1ff72a24eff0eca52ae67522103f2d14d7d04241e2399d5c05fbe2ee442d9ebdc8249f514454963701cbb8399962103b6a96f51f1dbf430c3fcef25e90ec579a9e566cfdb60ca4c42f4060d74876d1252ae686721022705dd4970b5da96a077615bd70ec330c4998e7b8b05d7514fa82426b1cf4c76ac0462b1455eb168