MultiversX Tracker is Live!

Unable to "sendcoins" using bitgo express apis - Windows OS

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 151 Views

BitGo generally uses 2-of-3 multisig transactions. That means that when you send a transaction, you must provide one of the signatures, and BitGo will add the second signature once you submit the partially signed transaction to the BitGo API. Since you need to use your own private key material to generate a signature, the signature has to be created client-side, or you'd be leaking your private key to BitGo.

The flow to create transactions is that BitGo usually will create an unsigned transaction per your request, then you'll add the first signature locally, and submit the partially-signed transaction either to get BitGo's signature and submit the signed transaction yourself, or for BitGo to finalize and submit it.

Express is a standard nodejs server framework to build web applications. BitGo Express is a piece of server software meant to be run on your own server. It wraps the functionality of the BitGo SDK to a set of REST endpoints, and communicates with BitGo's API to make data requests, but since you run it (and it's completely opensource), you can trust it to perform client-side actions such as your signing operations.

The sendcoins endpoint is an Express point. To use it, you must run your own Express server and call the endpoint on your Express server. You tried calling the Express endpoint on BitGo's API instead, but since BitGo cannot perform your signature (as it doesn't have your private key), it cannot perform the functionality your Express server would offer on that call.

You will either need to use the BitGo SDK (bitgojs) locally to make a series of calls in your scripts, i.e. /api/v2/{coin}/wallet/{walletId}/tx/build, sign the tx locally, then submit it via /api/v2/{coin}/wallet/{walletId}/tx/send, or set up an Express server to be able to use api/v2/tbtc/wallet/{walletid}/sendcoins.

I suggest that you carefully read the "Overview" section of the BitGo documentation which describes the above and gives you more instructions on how to authenticate, get wallet data, etc: https://app.bitgo.com/docs/#tag/Overview


Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments