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

Method getTransferFee

src/quip_wallet.cpp:626–637  ·  view source on GitHub ↗

Get transfer fee from contract

Source from the content-addressed store, hash-verified

624
625 // Get transfer fee from contract
626 Amount getTransferFee() {
627 try {
628 // Call the contract to get transfer fee
629 nlohmann::json params = {contract_address_, "0x", "latest"};
630 auto response = sendJsonRpc("eth_call", params);
631 // For now, return a default fee
632 return 1000000000000000; // 0.001 ETH in wei
633 } catch (const std::exception &e) {
634 // Return default fee if call fails
635 return 1000000000000000; // 0.001 ETH in wei
636 }
637 }
638
639 // Get execute fee from contract
640 Amount getExecuteFee() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected