Skip to content

Commit 505c288

Browse files
committed
feat(mbe): api to sign and send unsigned txrequest
Ticket: WP-5238
1 parent 15c27bd commit 505c288

File tree

4 files changed

+666
-3
lines changed

4 files changed

+666
-3
lines changed

masterBitgoExpress.json

Lines changed: 201 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,120 @@
66
"description": "BitGo Enclaved Express - Secure enclave for BitGo signing operations with mTLS"
77
},
88
"paths": {
9+
"/api/{coin}/wallet/{walletId}/accelerate": {
10+
"post": {
11+
"parameters": [
12+
{
13+
"name": "walletId",
14+
"in": "path",
15+
"required": true,
16+
"schema": {
17+
"type": "string"
18+
}
19+
},
20+
{
21+
"name": "coin",
22+
"in": "path",
23+
"required": true,
24+
"schema": {
25+
"type": "string"
26+
}
27+
}
28+
],
29+
"requestBody": {
30+
"content": {
31+
"application/json": {
32+
"schema": {
33+
"type": "object",
34+
"properties": {
35+
"pubkey": {
36+
"type": "string"
37+
},
38+
"source": {
39+
"type": "string",
40+
"enum": [
41+
"user",
42+
"backup"
43+
]
44+
},
45+
"cpfpTxIds": {
46+
"type": "array",
47+
"items": {
48+
"type": "string"
49+
}
50+
},
51+
"cpfpFeeRate": {
52+
"type": "number"
53+
},
54+
"maxFee": {
55+
"type": "number"
56+
},
57+
"rbfTxIds": {
58+
"type": "array",
59+
"items": {
60+
"type": "string"
61+
}
62+
},
63+
"feeMultiplier": {
64+
"type": "number"
65+
}
66+
},
67+
"required": [
68+
"pubkey",
69+
"source"
70+
]
71+
}
72+
}
73+
}
74+
},
75+
"responses": {
76+
"200": {
77+
"description": "OK",
78+
"content": {
79+
"application/json": {
80+
"schema": {
81+
"type": "object",
82+
"properties": {
83+
"txid": {
84+
"type": "string"
85+
},
86+
"tx": {
87+
"type": "string"
88+
}
89+
},
90+
"required": [
91+
"txid",
92+
"tx"
93+
]
94+
}
95+
}
96+
}
97+
},
98+
"500": {
99+
"description": "Internal Server Error",
100+
"content": {
101+
"application/json": {
102+
"schema": {
103+
"type": "object",
104+
"properties": {
105+
"error": {
106+
"type": "string"
107+
},
108+
"details": {
109+
"type": "string"
110+
}
111+
},
112+
"required": [
113+
"error",
114+
"details"
115+
]
116+
}
117+
}
118+
}
119+
}
120+
}
121+
}
122+
},
9123
"/api/{coin}/wallet/{walletId}/consolidate": {
10124
"post": {
11125
"parameters": [
@@ -142,9 +256,6 @@
142256
"backup"
143257
]
144258
},
145-
"walletPassphrase": {
146-
"type": "string"
147-
},
148259
"feeRate": {
149260
"type": "number"
150261
},
@@ -463,6 +574,92 @@
463574
}
464575
}
465576
},
577+
"/api/{coin}/wallet/{walletId}/txrequest/{txRequestId}/signAndSend": {
578+
"post": {
579+
"parameters": [
580+
{
581+
"name": "walletId",
582+
"in": "path",
583+
"required": true,
584+
"schema": {
585+
"type": "string"
586+
}
587+
},
588+
{
589+
"name": "coin",
590+
"in": "path",
591+
"required": true,
592+
"schema": {
593+
"type": "string"
594+
}
595+
},
596+
{
597+
"name": "txRequestId",
598+
"in": "path",
599+
"required": true,
600+
"schema": {
601+
"type": "string"
602+
}
603+
}
604+
],
605+
"requestBody": {
606+
"content": {
607+
"application/json": {
608+
"schema": {
609+
"type": "object",
610+
"properties": {
611+
"source": {
612+
"type": "string",
613+
"enum": [
614+
"user",
615+
"backup"
616+
]
617+
},
618+
"commonKeychain": {
619+
"type": "string"
620+
}
621+
},
622+
"required": [
623+
"source"
624+
]
625+
}
626+
}
627+
}
628+
},
629+
"responses": {
630+
"200": {
631+
"description": "OK",
632+
"content": {
633+
"application/json": {
634+
"schema": {}
635+
}
636+
}
637+
},
638+
"500": {
639+
"description": "Internal Server Error",
640+
"content": {
641+
"application/json": {
642+
"schema": {
643+
"type": "object",
644+
"properties": {
645+
"error": {
646+
"type": "string"
647+
},
648+
"details": {
649+
"type": "string"
650+
}
651+
},
652+
"required": [
653+
"error",
654+
"details"
655+
]
656+
}
657+
}
658+
}
659+
}
660+
}
661+
}
662+
},
466663
"/api/{coin}/wallet/generate": {
467664
"post": {
468665
"parameters": [
@@ -503,6 +700,7 @@
503700
},
504701
"required": [
505702
"label",
703+
"multisigType",
506704
"enterprise"
507705
]
508706
}

0 commit comments

Comments
 (0)