We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd881c commit 48626caCopy full SHA for 48626ca
lib/ckb/api.rb
@@ -382,6 +382,27 @@ def remove_node(peer_id)
382
rpc.remove_node(peer_id)
383
end
384
385
+ def ping_peers
386
+ rpc.ping_peers
387
+ end
388
+
389
+ # @param tx_hashes [string[]]
390
+ # @param block_hash [string]
391
+ def get_transaction_proof(tx_hashes:, block_hash: nil)
392
+ transaction_proof_h = rpc.get_transaction_proof(tx_hashes, block_hash)
393
+ CKB::Types::TransactionProof.from_h(transaction_proof_h)
394
395
396
397
+ # @param proof [CKB::Types::TransactionProof]
398
+ def verify_transaction_proof(proof)
399
+ rpc.verify_transaction_proof(proof)
400
401
402
+ def clear_banned_addresses
403
+ rpc.clear_banned_addresses
404
405
406
def inspect
407
"\#<API@#{rpc.uri}>"
408
0 commit comments