private/cancel_block_proposal
Changed onEnds an open block proposal and returns it. When the maker calls it, the status becomes cancelled. When the recipient_wallet of the proposal calls it, the status becomes declined. Only an open proposal can be cancelled or declined. After a successful call, the proposal can never execute. Fails with block_proposal_not_found (11117) if no proposal has that id, or if the caller is neither its maker nor its recipient. Fails with block_proposal_not_open (11118) if the proposal is not open, for example because it has executed or an accept is in progress. Requires the block_trade off-chain scope.
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
UUID v4 string
The session's wallet: the maker or the recipient of the proposal.
Response
Success
A block proposal as its maker and its recipient see it.
The block trade, once the proposal executes.
The maker's direction. The taker trades the opposite.
The last second (UTC) at which the proposal can be accepted.
Whether the proposal is on the public list.
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
UUID v4 string
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
Changes
- info
endpoint added
- info