File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @safe-global/safe-gateway-typescript-sdk" ,
3- "version" : " 3.12 .0" ,
3+ "version" : " 3.13 .0" ,
44 "main" : " dist/index.js" ,
55 "types" : " dist/index.d.ts" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -229,6 +229,12 @@ export function postSafeGasEstimation(
229229 } )
230230}
231231
232+ export function getRecommendedNonce ( chainId : string , address : string ) : Promise < number > {
233+ return getEndpoint ( baseUrl , '/v1/chains/{chainId}/safes/{safe_address}/recommended-nonce' , {
234+ path : { chainId, safe_address : address } ,
235+ } )
236+ }
237+
232238/**
233239 * Propose a new transaction for other owners to sign/execute
234240 */
Original file line number Diff line number Diff line change @@ -304,6 +304,15 @@ export interface paths extends PathRegistry {
304304 }
305305 }
306306 }
307+ '/v1/chains/{chainId}/safes/{safe_address}/recommended-nonce' : {
308+ get : operations [ 'get_recommended_nonce' ]
309+ parameters : {
310+ path : {
311+ chainId : string
312+ safe_address : string
313+ }
314+ }
315+ }
307316}
308317
309318export interface operations {
@@ -760,4 +769,17 @@ export interface operations {
760769 }
761770 }
762771 }
772+ get_recommended_nonce : {
773+ parameters : {
774+ path : {
775+ chainId : string
776+ safe_address : string
777+ }
778+ }
779+ responses : {
780+ 200 : {
781+ schema : number
782+ }
783+ }
784+ }
763785}
You can’t perform that action at this time.
0 commit comments