syntax = "proto3";

package payment;

option go_package = "github.com/echofi-ai/schema/v2/types/payment";

// PaymentService handles Web3 transaction verification
service PaymentService {
  // ConfirmPayment verifies a blockchain payment by txHash
  rpc ConfirmPayment(ConfirmPaymentRequest) returns (ConfirmPaymentResponse) {}
}

message ConfirmPaymentRequest {
    string tx_hash = 1;
    string from_address = 2;
    string to_address = 3;
    string chain = 4; // BEP20, Aptos, TRC20, ERC20.
}

message ConfirmPaymentResponse {
  bool success = 1;
  string payment_id = 2;
  string error_message = 3;
}
