Sign Up

Log In

TrustedCoin

FREE
By jseims
Updated 5 months ago
Finance
-/10
Popularity Score
-
Latency
-
Success Rate

TrustedCoin API Documentation

Trusted Coin is a Bitcoin transaction cosigning service. Users of this API can create M-of-N multisignature P2SH addresses (where Trusted Coin acts as one of the cosigners). The policy logic Trusted Coin should apply when deciding if to cosign (and thus approve) individual transactions is user configurable. Via this mechanism higher-level services can be built including wallet protection schemes and escrow.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

POST/1/cosigner
POST/1/cosigner/<script_hash_address>/send_start
GET/1/cosigner/<script_hash_address>
POST/1/cosigner/<script_hash_address>/send_finish
POST/1/cosigner

Creates a cosigner enforcing a particular policy.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
policySTRING
REQUIREDThe policy the cosigner should apply when deciding to sign a transaction or not. See the policy section for more information.
primary_keySTRING
REQUIREDThe first key in the M-of-N policy. This is a public key that corresponds to a private key that you control. This must be sent in hex-encoded SEC format (compressed and uncompressed varieties are both supported). Note: bitcoin addresses are not public keys - they are hashes of public keys. If you are using bitcoin-qt, you can use the "validateaddress" command line option to determine the public key associated with an address managed by your wallet. Example: 0345fb7c9a8eb70e9c83d5695cf6d93c5453ed83456badf166ebb77bf8b923e74f
Optional Parameters
secondary_keySTRING
OPTIONALThe second public key in the M-of-N policy. If provided, the P2SH multisignature requirement will be 2-of-3, otherwise it will be 2-of-2. The format of this key is the same as primary_key.
Request Snippet
unirest.post("https://jseims-trustedcoin.p.rapidapi.com/1/cosigner")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("secondary_key=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://jseims-trustedcoin.p.rapidapi.com/1/cosigner")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("secondary_key=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard