wallet_addNetwork
Add a custom to the user's Xverse wallet
Parameters
Request parameters
Description
import Wallet from 'sats-connect';
async function example() {
const res = await Wallet.request('wallet_addNetwork', {
name: 'my-custom-regtest',
chain: 'bitcoin',
rpc_url: 'https://custom-regtest.tech/api/proxy',
indexer_api: 'https://indexer.my-custom-regtest.app',
block_explorer_url: 'https://mempool-my-custom-regtest.space',
rpc_fallback_url: 'https://fallback.custom-regtest.tech/api/proxy' // optional
});
if (res.status === 'error') {
console.error(res.error);
return;
}
console.log(res.result);
}β
addNetwork Result
Last updated
