Skip to content

How to transfer funds from an address to another in solidity #4994

Discussion options

You must be logged in to vote

@olaoyesalem You can send funds from smart contract to any address like this;

(bool success, ) = address.call{value: balance}("");
require(success);

address is the address of the user you want to send funds.
balance is the amount you want to send to the address.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@olaoyesalem
Comment options

Answer selected by olaoyesalem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants