File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import {
56
56
FireFlyContractAPIQueryRequest ,
57
57
FireFlyContractInvokeRequest ,
58
58
FireFlyContractQueryRequest ,
59
+ FireFlyDataRequest ,
59
60
} from './interfaces' ;
60
61
import { FireFlyWebSocket , FireFlyWebSocketCallback } from './websocket' ;
61
62
import HttpBase , { mapConfig } from './http' ;
@@ -152,6 +153,13 @@ export default class FireFly extends HttpBase {
152
153
return response . data ;
153
154
}
154
155
156
+ async uploadData (
157
+ data : FireFlyDataRequest ,
158
+ options ?: FireFlyCreateOptions ,
159
+ ) : Promise < FireFlyDataResponse > {
160
+ return this . createOne < FireFlyDataResponse > ( '/data' , data , options ) ;
161
+ }
162
+
155
163
async uploadDataBlob (
156
164
blob : string | Buffer | Readable ,
157
165
filename : string ,
You can’t perform that action at this time.
0 commit comments