File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -472,3 +472,25 @@ Get the block’s timestamp.
472
472
** Returns**
473
473
474
474
` blockTimestamp ` ** i64**
475
+
476
+
477
+ ## transfer
478
+
479
+ Trasfers ETH from the current account to the destination address.
480
+ When the balance of the current account is not sufficient the method ends
481
+ with a failure.
482
+
483
+ ** Parameters**
484
+
485
+ - ` destinationOffset ` ** i32ptr** the memory offset to load the destination address from (` address ` )
486
+ - ` valueOffset ` ** i32ptr** the memory offset to load the value from (` u128 ` )
487
+
488
+ ** Returns**
489
+
490
+ ` result ` ** i32** Returns 0 on success, 1 on failure.
491
+
492
+ ** Rationale**
493
+
494
+ This method is added for compatibility with EVM1 where you can achieve the same
495
+ result by using CREATE + SELFDESTRUCT combo.
496
+
You can’t perform that action at this time.
0 commit comments