- GET /contracts/$CONTRACT_PUB#
Obtain P2P contract associated with the given contract public key.
Response:
- 200 Ok:
The contract is being returned using a ExchangeContractResponse.
- 400 Bad Request:
The
$CONTRACT_PUBis malformed. This response comes with a standard ErrorDetail response with a code ofTALER_EC_EXCHANGE_CONTRACTS_INVALID_CONTRACT_PUB.- 404 Not found:
The contract is unknown. This response comes with a standard ErrorDetail response with a code of
TALER_EC_EXCHANGE_CONTRACTS_UNKNOWN.- 500 Internal Server Error:
The server experienced an internal error. This response comes with a standard ErrorDetail response with a code of
TALER_EC_GENERIC_DB_FETCH_FAILED.
Details:
interface ExchangeContractResponse { // Public key of the purse into which payments must be // made for this contract. purse_pub: PursePublicKey; // Signature over the contract econtract_sig: PurseContractSignature; // Encrypted contract. econtract: EncryptedContract; }