新規登録​

ログイン​

TrustedCoin

FREE
開発者​ jseims
更新日 15時間前​
ファイナンス​
-/10
人気度​
-
レイテンシ​
-
正常稼働率​

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.

全文を​表示する​

さらに​魅力的な​アプリ開発を​

世界最大級の​APIマーケットプレイスで、​8,000以上の​豊富な​ラインナップから​APIを​検索、​簡単に​接続​しましょう​

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.

ログインして​このエンドポイントを​テストする​
ログイン​
ヘッダーパラメータ​
X-RapidAPI-KeySTRING
REQUIRED
必須パラメータ​
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
パラメータ(Option)​
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.
コードスニペット​
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);
});
サンプルレスポンス​

loading...

ログイン​新規登録​

SDKを​インストール(NodeJS)​

インストール​

Node.jsで​Unirestを​使用​するには、​NPMモジュールを​インストール​してください。​

$ npm install unirest

インストール​完了後は、​簡単に​リクエストを​行うことが​できるように​なります。​

var unirest = require('unirest');

リクエスト​

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認証​
クライアントID​
クライアントシークレット​
OAuth2認証​
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
APIを​検索​
ブラウザ上で​即座にテスト​
接続用スニペットの​自動生成​
ダッシュボードで​一括管理​