diff --git a/lib/ckb/api.rb b/lib/ckb/api.rb index 64d20203..d870d326 100644 --- a/lib/ckb/api.rb +++ b/lib/ckb/api.rb @@ -382,6 +382,27 @@ def remove_node(peer_id) rpc.remove_node(peer_id) end + def ping_peers + rpc.ping_peers + end + + # @param tx_hashes [string[]] + # @param block_hash [string] + def get_transaction_proof(tx_hashes:, block_hash: nil) + transaction_proof_h = rpc.get_transaction_proof(tx_hashes, block_hash) + CKB::Types::TransactionProof.from_h(transaction_proof_h) + end + + + # @param proof [CKB::Types::TransactionProof] + def verify_transaction_proof(proof) + rpc.verify_transaction_proof(proof) + end + + def clear_banned_addresses + rpc.clear_banned_addresses + end + def inspect "\#" end