MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / getExecuteFee

Method getExecuteFee

src/quip_wallet.cpp:640–651  ·  view source on GitHub ↗

Get execute fee from contract

Source from the content-addressed store, hash-verified

638
639 // Get execute fee from contract
640 Amount getExecuteFee() {
641 try {
642 // Call the contract to get execute fee
643 nlohmann::json params = {contract_address_, "0x", "latest"};
644 auto response = sendJsonRpc("eth_call", params);
645 // For now, return a default fee
646 return 1000000000000000; // 0.001 ETH in wei
647 } catch (const std::exception &e) {
648 // Return default fee if call fails
649 return 1000000000000000; // 0.001 ETH in wei
650 }
651 }
652
653 // Derive classical public key from private key
654 std::string deriveClassicalPublicKey(const PrivateKey &private_key) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected