@@ -66,7 +66,7 @@ class RadixClient extends BaseXChainClient {
66
66
getExplorerUrl ( ) : string {
67
67
switch ( this . getNetwork ( ) ) {
68
68
case Network . Mainnet :
69
- return 'https://explorer .radixdlt.com'
69
+ return 'https://dashboard .radixdlt.com'
70
70
case Network . Testnet :
71
71
return 'https://stokenet-dashboard.radixdlt.com/'
72
72
default :
@@ -114,104 +114,33 @@ class RadixClient extends BaseXChainClient {
114
114
* @throws {"Invalid asset" } Thrown when the provided asset is invalid.
115
115
*/
116
116
async getBalance ( address : string , assets ?: Asset [ ] | undefined ) : Promise < Balance [ ] > {
117
- console . log ( address + assets )
118
- try {
119
- // Assuming walletIndex is used to construct the URL
120
- const url = `https://jsonplaceholder.typicode.com/posts/}`
121
- console . log ( 'Making GET request to:' , url )
122
- const response = await axios . get ( url )
123
- console . log ( 'Response data:' , response . data )
124
- // Assuming the response contains an address field
125
- const address = response . data . address
126
- return address
127
- } catch ( error ) {
128
- console . error ( 'Error fetching address:' , error )
129
- throw error
130
- }
117
+ throw new Error ( 'Not implemented' )
131
118
}
119
+
132
120
async getTransactions ( params ?: TxHistoryParams | undefined ) : Promise < TxsPage > {
133
- try {
134
- console . log ( params )
135
- // Assuming walletIndex is used to construct the URL
136
- const url = `https://jsonplaceholder.typicode.com/posts/`
137
- console . log ( 'Making GET request to:' , url )
138
- const response = await axios . get ( url )
139
- console . log ( 'Response data:' , response . data )
140
- // Assuming the response contains an address field
141
- const address = response . data . address
142
- return address
143
- } catch ( error ) {
144
- console . error ( 'Error fetching address:' , error )
145
- throw error
146
- }
121
+ throw new Error ( 'Not implemented' )
147
122
}
123
+
148
124
async getTransactionData ( txId : string , assetAddress ?: string | undefined ) : Promise < Tx > {
149
- try {
150
- console . log ( txId + assetAddress )
151
- // Assuming walletIndex is used to construct the URL
152
- const url = `https://jsonplaceholder.typicode.com/posts/`
153
- console . log ( 'Making GET request to:' , url )
154
- const response = await axios . get ( url )
155
- console . log ( 'Response data:' , response . data )
156
- // Assuming the response contains an address field
157
- const address = response . data . address
158
- return address
159
- } catch ( error ) {
160
- console . error ( 'Error fetching address:' , error )
161
- throw error
162
- }
125
+ throw new Error ( 'Not implemented' )
163
126
}
127
+
164
128
async transfer ( params : TxParams ) : Promise < string > {
165
- try {
166
- console . log ( params )
167
- // Assuming walletIndex is used to construct the URL
168
- const url = `https://jsonplaceholder.typicode.com/posts/`
169
- console . log ( 'Making GET request to:' , url )
170
- const response = await axios . get ( url )
171
- console . log ( 'Response data:' , response . data )
172
- // Assuming the response contains an address field
173
- const address = response . data . address
174
- return address
175
- } catch ( error ) {
176
- console . error ( 'Error fetching address:' , error )
177
- throw error
178
- }
129
+ throw new Error ( 'Not implemented' )
179
130
}
131
+
180
132
async broadcastTx ( txHex : string ) : Promise < string > {
181
- try {
182
- console . log ( txHex )
183
- // Assuming walletIndex is used to construct the URL
184
- const url = `https://jsonplaceholder.typicode.com/posts/`
185
- console . log ( 'Making GET request to:' , url )
186
- const response = await axios . get ( url )
187
- console . log ( 'Response data:' , response . data )
188
- // Assuming the response contains an address field
189
- const address = response . data . address
190
- return address
191
- } catch ( error ) {
192
- console . error ( 'Error fetching address:' , error )
193
- throw error
194
- }
133
+ throw new Error ( 'Not implemented' )
195
134
}
135
+
196
136
getAssetInfo ( ) : AssetInfo {
197
137
throw new Error ( 'Method not implemented.' )
198
138
}
139
+
199
140
async prepareTx ( params : TxParams ) : Promise < PreparedTx > {
200
- try {
201
- console . log ( params )
202
- // Assuming walletIndex is used to construct the URL
203
- const url = `https://jsonplaceholder.typicode.com/posts/`
204
- console . log ( 'Making GET request to:' , url )
205
- const response = await axios . get ( url )
206
- console . log ( 'Response data:' , response . data )
207
- // Assuming the response contains an address field
208
- const address = response . data . address
209
- return address
210
- } catch ( error ) {
211
- console . error ( 'Error fetching address:' , error )
212
- throw error
213
- }
141
+ throw new Error ( 'Not implemented' )
214
142
}
143
+
215
144
async estimateFees ( params ?: TxParams ) : Promise < Fees > {
216
145
try {
217
146
console . log ( params )
0 commit comments