e445c15e5bee
Get transfer
A transfer is a wallet specific object. Each transfer will only output the respective wallet id which the transfer is associated with.
If there is a transaction between two BitGo wallets, then two transfers will be created, one for wallet A, and one for wallet B. Transfer A will only annotate the walletId on entries where the address belongs to wallet A. Transfer B will only annotate the walletId on entries where the address belongs to wallet B.
Go Account / OFC transfers (front/backing transfer model):
For Go Account (OFC) wallets, a withdrawal is represented as two transfers:
- Front transfer — the record returned by this endpoint. Its txid and normalizedTxHash hold an internal BitGo front-transfer hash (e.g. prefixed with the OFC coin identifier). This value does not appear on any block explorer.
- Backing transfer — the actual on-chain transaction that settles the withdrawal. The on-chain transaction hash is stored in the front transfer's metadata array under the key onChainTxId.
When reconciling a Go Account withdrawal against an on-chain explorer or an external ledger, use metadata[].onChainTxId rather than the top-level txid. The onChainTxId entry is absent while the transfer is in state signed; it is populated once the transfer reaches state confirmed. Poll until state === 'confirmed' before reading this field.
For standard ofc_deposit transfers (non-lightning) the top-level txid and metadata[].onChainTxId are identical. For OFC lightning deposits the payment hash is stored under metadata[].lightningPaymentHash instead; onChainTxId is not present on lightning deposits.
See the subType field for whether a transfer is an ofc_withdrawal, ofc_deposit, ofc_book_transfer, ofc_stake, or ofc_unstake.
Path parameters
A cryptocurrency or token ticker symbol.
The wallet ID.
a transfer or transaction id
Query parameters
True, if returning the txRequestCreatedDate. This field is only present on transfers associated with a transaction request.
Response
OK
Example response
{
"coin": "btc",
"id": "59cd72485007a239fb00282ed480da1f",
"wallet": "59cd72485007a239fb00282ed480da1f",
"enterprise": "59cd72485007a239fb00282ed480da1f",
"txid": "b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26",
"normalizedTxHash": "b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26",
"valueString": "2000000",
"intendedValueString": "2000000",
"baseValueString": "2000000",
"baseValueWithoutFeesString": "2000000",
"state": "confirmed",
"tags": [
"59cd72485007a239fb00282ed480da1f"
],
"history": [
{
"user": "59cd72485007a239fb00282ed480da1f"
}
],
"consolidateId": "59cd72485007a239fb00282ed480da1f",
"entries": [
{
"address": "2NAUwNgXaoFj2VVnSEvNLGuez8CfdU2UCMZ",
"wallet": "59cd72485007a239fb00282ed480da1f",
"valueString": "2000000",
"token": "omg"
}
],
"inputs": [
{
"id": "003f688cc349f1fca8ac5ffa21671ca911b6ef351085c60733ed8c2ebf162cb8:2",
"address": "2MsKxhhkDo5WaLaYRGA9Cr3iSQPyXsu6Fi2",
"valueString": "2000000",
"date": "2017-03-25T23:01:40.248Z",
"wallet": "59cd72485007a239fb00282ed480da1f",
"fromWallet": "59cd72485007a239fb00282ed480da1f",
"redeemScript": "522102f1e990044d2a8be43d5b500bbdcb36277b97a4b07e01c5101ae8ec1568bfd6532103dab7dc82f2fc8c28200c1bdeca9c4cf181e0ca257395829cbd599395048afb57210205422e711827d8356f2fb75334d863941dd7eb45bd5788fa231dc5fa755135b653ae",
"witnessScript": "52210351311cd81144e6cbdba561d24dfc22644cb02d053339d4beace03231b3be4f372103a8d0c1a375b9ee1a2411f9f8e18373be7f228b18260f63bbfca48809170ed08b2103c3bd8bd074657bbe9ee6714b31a4a54b6fd5b5cda0e1030122f9bf46b5034f6b53ae"
}
],
"outputs": [
{
"id": "003f688cc349f1fca8ac5ffa21671ca911b6ef351085c60733ed8c2ebf162cb8:2",
"address": "2MsKxhhkDo5WaLaYRGA9Cr3iSQPyXsu6Fi2",
"valueString": "2000000",
"date": "2017-03-25T23:01:40.248Z",
"wallet": "59cd72485007a239fb00282ed480da1f",
"fromWallet": "59cd72485007a239fb00282ed480da1f",
"redeemScript": "522102f1e990044d2a8be43d5b500bbdcb36277b97a4b07e01c5101ae8ec1568bfd6532103dab7dc82f2fc8c28200c1bdeca9c4cf181e0ca257395829cbd599395048afb57210205422e711827d8356f2fb75334d863941dd7eb45bd5788fa231dc5fa755135b653ae",
"witnessScript": "52210351311cd81144e6cbdba561d24dfc22644cb02d053339d4beace03231b3be4f372103a8d0c1a375b9ee1a2411f9f8e18373be7f228b18260f63bbfca48809170ed08b2103c3bd8bd074657bbe9ee6714b31a4a54b6fd5b5cda0e1030122f9bf46b5034f6b53ae"
}
]
}