@@ -111,7 +111,7 @@ func (c *Cardano) Init(ctx context.Context, cancelCtx context.CancelFunc, conf c
111111 }
112112
113113 if c .wsConfig .WSKeyPath == "" {
114- c .wsConfig .WSKeyPath = "/ws"
114+ c .wsConfig .WSKeyPath = "/api/v1/ ws"
115115 }
116116
117117 c .streamIDs = make (map [string ]string )
@@ -243,7 +243,7 @@ func (c *Cardano) DeployContract(ctx context.Context, nsOpID, signingKey string,
243243 SetContext (ctx ).
244244 SetBody (body ).
245245 SetError (& resErr ).
246- Post ("/contracts/deploy" )
246+ Post ("/api/v1/ contracts/deploy" )
247247 if err != nil || ! res .IsSuccess () {
248248 return resErr .SubmissionRejected , common .WrapRESTError (ctx , & resErr , res , err , coremsgs .MsgCardanoconnectRESTErr )
249249 }
@@ -287,7 +287,7 @@ func (c *Cardano) InvokeContract(ctx context.Context, nsOpID string, signingKey
287287 SetContext (ctx ).
288288 SetBody (body ).
289289 SetError (& resErr ).
290- Post ("/contracts/invoke" )
290+ Post ("/api/v1/ contracts/invoke" )
291291 if err != nil || ! res .IsSuccess () {
292292 return resErr .SubmissionRejected , common .WrapRESTError (ctx , & resErr , res , err , coremsgs .MsgCardanoconnectRESTErr )
293293 }
@@ -324,7 +324,7 @@ func (c *Cardano) QueryContract(ctx context.Context, signingKey string, location
324324 SetContext (ctx ).
325325 SetBody (body ).
326326 SetError (& resErr ).
327- Post ("/contracts/query" )
327+ Post ("/api/v1/ contracts/query" )
328328 if err != nil || ! res .IsSuccess () {
329329 return nil , common .WrapRESTError (ctx , & resErr , res , err , coremsgs .MsgCardanoconnectRESTErr )
330330 }
@@ -488,7 +488,7 @@ func (c *Cardano) GetAndConvertDeprecatedContractConfig(ctx context.Context) (lo
488488func (c * Cardano ) GetTransactionStatus (ctx context.Context , operation * core.Operation ) (interface {}, error ) {
489489 txnID := (& core.PreparedOperation {ID : operation .ID , Namespace : operation .Namespace }).NamespacedIDString ()
490490
491- transactionRequestPath := fmt .Sprintf ("/transactions/%s" , txnID )
491+ transactionRequestPath := fmt .Sprintf ("/api/v1/ transactions/%s" , txnID )
492492 client := c .client
493493 var resErr common.BlockchainRESTError
494494 var statusResponse fftypes.JSONObject
0 commit comments