Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions node/coinstacks/bitcoin/api/src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"pubkey": {
"type": "string"
},
"path": {
"type": "string",
"description": "BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).\nPresent only for xpub-derived addresses."
}
},
"required": [
Expand Down
4 changes: 4 additions & 0 deletions node/coinstacks/bitcoincash/api/src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"pubkey": {
"type": "string"
},
"path": {
"type": "string",
"description": "BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).\nPresent only for xpub-derived addresses."
}
},
"required": [
Expand Down
5 changes: 5 additions & 0 deletions node/coinstacks/common/api/src/utxo/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export interface Utxo {
export interface Address {
balance: string
pubkey: string
/**
* BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).
* Present only for xpub-derived addresses.
*/
path?: string
}

/**
Expand Down
1 change: 1 addition & 0 deletions node/coinstacks/common/api/src/utxo/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class Service implements Omit<BaseAPI, 'getInfo'>, API {
const addresses = data.tokens?.map<Address>((token) => ({
balance: token.balance ?? '0',
pubkey: token.name,
path: token.path,
})) ?? [
{
balance: data.balance,
Expand Down
4 changes: 4 additions & 0 deletions node/coinstacks/dogecoin/api/src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"pubkey": {
"type": "string"
},
"path": {
"type": "string",
"description": "BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).\nPresent only for xpub-derived addresses."
}
},
"required": [
Expand Down
4 changes: 4 additions & 0 deletions node/coinstacks/litecoin/api/src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"pubkey": {
"type": "string"
},
"path": {
"type": "string",
"description": "BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).\nPresent only for xpub-derived addresses."
}
},
"required": [
Expand Down
4 changes: 4 additions & 0 deletions node/coinstacks/zcash/api/src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"pubkey": {
"type": "string"
},
"path": {
"type": "string",
"description": "BIP44 derivation path for the address (e.g. `m/84'/0'/0'/0/3`).\nPresent only for xpub-derived addresses."
}
},
"required": [
Expand Down
Loading