@@ -1238,6 +1238,7 @@ impl offline::ArgsConfig for SignOnlyNeedsDelegateAddress {
1238
1238
1239
1239
fn main ( ) {
1240
1240
let default_decimals = & format ! ( "{}" , native_mint:: DECIMALS ) ;
1241
+ let mut no_wait = false ;
1241
1242
let app_matches = App :: new ( crate_name ! ( ) )
1242
1243
. about ( crate_description ! ( ) )
1243
1244
. version ( crate_version ! ( ) )
@@ -1504,6 +1505,12 @@ fn main() {
1504
1505
. takes_value ( false )
1505
1506
. help ( "Create the associated token account for the recipient if doesn't already exist" )
1506
1507
)
1508
+ . arg (
1509
+ Arg :: with_name ( "no_wait" )
1510
+ . long ( "no-wait" )
1511
+ . takes_value ( false )
1512
+ . help ( "Return signature immediately after submitting the transaction, instead of waiting for confirmations" ) ,
1513
+ )
1507
1514
. arg ( multisig_signer_arg ( ) )
1508
1515
. arg ( mint_decimals_arg ( ) )
1509
1516
. nonce_args ( true )
@@ -2044,6 +2051,7 @@ fn main() {
2044
2051
let fund_recipient = matches. is_present ( "fund_recipient" ) ;
2045
2052
let allow_unfunded_recipient = matches. is_present ( "allow_empty_recipient" )
2046
2053
|| matches. is_present ( "allow_unfunded_recipient" ) ;
2054
+ no_wait = matches. is_present ( "no_wait" ) ;
2047
2055
command_transfer (
2048
2056
& config,
2049
2057
token,
@@ -2228,9 +2236,13 @@ fn main() {
2228
2236
println ! ( "{}" , return_signers( & transaction, & OutputFormat :: Display ) ?) ;
2229
2237
} else {
2230
2238
transaction. try_sign ( & signer_info. signers , recent_blockhash) ?;
2231
- let signature = config
2232
- . rpc_client
2233
- . send_and_confirm_transaction_with_spinner ( & transaction) ?;
2239
+ let signature = if no_wait {
2240
+ config. rpc_client . send_transaction ( & transaction) ?
2241
+ } else {
2242
+ config
2243
+ . rpc_client
2244
+ . send_and_confirm_transaction_with_spinner ( & transaction) ?
2245
+ } ;
2234
2246
println ! ( "Signature: {}" , signature) ;
2235
2247
}
2236
2248
}
0 commit comments