Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

@coinos/rpc

A simple wrapper for making bitcoin RPC calls

importrpcfrom"@coinos/rpc";letconfig={host: "localhost",wallet: "demo",user: "user",password: "123",network: "regtest",port: 18443,}letbc=rpc(config);letinfo=awaitbc.getWalletInfo();console.log(info);// positional paramsleta=awaitbc.getRawTransaction("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b");// named paramsletb=awaitbc.getRawTransaction({txid: "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"});

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages