Contents

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.

404 Not found:

The contract is unknown. This response comes with a standard ErrorDetail response.

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;
}