Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/bitcoin_rpc/mod.ts>default#setban

A Bitcoin RPC Module for Deno.
Latest
method default.prototype.setban
import { default } from "https://deno.land/x/bitcoin_rpc@v1.0.3/mod.ts";

Attempts to add or remove an IP/Subnet from the banned list. https://developer.bitcoin.org/reference/rpc/setban.html

Parameters

subnet: string
command: string
optional
bantime: number
optional
absolute: boolean