Payable Function Solidity là gì? Cơ chế xử lý ETH tới smart contract (P1)
11/05/2025
Về tác giả
My passion is hunting down the latest attack trends—ransomware, APTs, you name it—while passing on knowledge to help businesses forge ironclad defenses. I’ve left my mark on data encryption projects and intrusion detection tools now widely used across Vietnam. I’m the shadow that strikes before the enemy does.
@#@
Đam mê của tôi là nghiên cứu các xu hướng tấn công mới nhất như ransomware và APTs, đồng thời chia sẻ kiến thức để giúp doanh nghiệp xây dựng chiến lược phòng thủ hiệu quả. Tôi từng đóng góp vào các dự án mã hóa dữ liệu và phát triển công cụ phát hiện xâm nhập được sử dụng rộng rãi tại Việt Nam.
Cập nhật thông tin mới nhấtNhận các thông tin mới nhất về mối đe dọa, báo cáo an ninh mạng từ CyStack về hòm thư điện tử của bạn
{"success":true,"head":"<title>Payable Function Solidity: Từ ETH tới smart contract (P1)</title>\n<meta name=\"description\" content=\"Trong bài viết này mình sẽ giải thích khái niệm payable function Solidity, cơ chế EVM gửi ETH tới Smart Contract cùng vài kinh nghiệm cá nhân.\"/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large\"/>\n<link rel=\"canonical\" href=\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/\" />\n<meta property=\"og:locale\" content=\"en_US\" />\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:title\" content=\"Payable Function Solidity: Từ ETH tới smart contract (P1)\" />\n<meta property=\"og:description\" content=\"Trong bài viết này mình sẽ giải thích khái niệm payable function Solidity, cơ chế EVM gửi ETH tới Smart Contract cùng vài kinh nghiệm cá nhân.\" />\n<meta property=\"og:url\" content=\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/\" />\n<meta property=\"og:site_name\" content=\"CyStack Tutorial\" />\n<meta property=\"article:tag\" content=\"vi\" />\n<meta property=\"article:section\" content=\"Blockchain\" />\n<meta property=\"og:updated_time\" content=\"2026-08-03T16:33:15+07:00\" />\n<meta property=\"og:image\" content=\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\" />\n<meta property=\"og:image:secure_url\" content=\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\" />\n<meta property=\"og:image:width\" content=\"1200\" />\n<meta property=\"og:image:height\" content=\"630\" />\n<meta property=\"og:image:alt\" content=\"payable trong solidity\" />\n<meta property=\"og:image:type\" content=\"image/png\" />\n<meta property=\"article:published_time\" content=\"2025-05-11T12:36:09+07:00\" />\n<meta property=\"article:modified_time\" content=\"2026-08-03T16:33:15+07:00\" />\n<meta name=\"twitter:card\" content=\"summary_large_image\" />\n<meta name=\"twitter:title\" content=\"Payable Function Solidity: Từ ETH tới smart contract (P1)\" />\n<meta name=\"twitter:description\" content=\"Trong bài viết này mình sẽ giải thích khái niệm payable function Solidity, cơ chế EVM gửi ETH tới Smart Contract cùng vài kinh nghiệm cá nhân.\" />\n<meta name=\"twitter:image\" content=\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\" />\n<meta name=\"twitter:label1\" content=\"Written by\" />\n<meta name=\"twitter:data1\" content=\"Đức Hacker\" />\n<meta name=\"twitter:label2\" content=\"Time to read\" />\n<meta name=\"twitter:data2\" content=\"5 minutes\" />\n<script type=\"application/ld+json\" class=\"rank-math-schema\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https://blog.cystack.org/tutorial/#person\",\"name\":\"CyStack Tutorial\"},{\"@type\":\"WebSite\",\"@id\":\"https://blog.cystack.org/tutorial/#website\",\"url\":\"https://blog.cystack.org/tutorial\",\"name\":\"CyStack Tutorial\",\"publisher\":{\"@id\":\"https://blog.cystack.org/tutorial/#person\"},\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\",\"url\":\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\",\"width\":\"1200\",\"height\":\"630\",\"caption\":\"payable trong solidity\",\"inLanguage\":\"en-US\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":\"1\",\"item\":{\"@id\":\"https://blog.cystack.org/tutorial\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":\"2\",\"item\":{\"@id\":\"https://blog.cystack.org/tutorial/vi/category/blockchain/\",\"name\":\"Blockchain\"}},{\"@type\":\"ListItem\",\"position\":\"3\",\"item\":{\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/\",\"name\":\"Payable Function Solidity l\\u00e0 g\\u00ec? C\\u01a1 ch\\u1ebf x\\u1eed l\\u00fd ETH t\\u1edbi smart contract (P1)\"}}]},{\"@type\":\"WebPage\",\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#webpage\",\"url\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/\",\"name\":\"Payable Function Solidity: T\\u1eeb ETH t\\u1edbi smart contract (P1)\",\"datePublished\":\"2025-05-11T12:36:09+07:00\",\"dateModified\":\"2026-08-03T16:33:15+07:00\",\"isPartOf\":{\"@id\":\"https://blog.cystack.org/tutorial/#website\"},\"primaryImageOfPage\":{\"@id\":\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\"},\"inLanguage\":\"en-US\",\"breadcrumb\":{\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#breadcrumb\"}},{\"@type\":\"Person\",\"@id\":\"https://blog.cystack.org/tutorial/author/duchacker/\",\"name\":\"\\u0110\\u1ee9c Hacker\",\"url\":\"https://blog.cystack.org/tutorial/author/duchacker/\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https://secure.gravatar.com/avatar/7b8b6e4bc4811342b8e2f2134f90dda5961f2d4f8e7da5ec77e52bb909a19782?s=96&d=mm&r=g\",\"url\":\"https://secure.gravatar.com/avatar/7b8b6e4bc4811342b8e2f2134f90dda5961f2d4f8e7da5ec77e52bb909a19782?s=96&d=mm&r=g\",\"caption\":\"\\u0110\\u1ee9c Hacker\",\"inLanguage\":\"en-US\"}},{\"@type\":\"BlogPosting\",\"headline\":\"Payable Function Solidity: T\\u1eeb ETH t\\u1edbi smart contract (P1)\",\"keywords\":\"payable function Solidity,payable solidity l\\u00e0 g\\u00ec\",\"datePublished\":\"2025-05-11T12:36:09+07:00\",\"dateModified\":\"2026-08-03T16:33:15+07:00\",\"articleSection\":\"Blockchain, Solidity\",\"author\":{\"@id\":\"https://blog.cystack.org/tutorial/author/duchacker/\",\"name\":\"\\u0110\\u1ee9c Hacker\"},\"publisher\":{\"@id\":\"https://blog.cystack.org/tutorial/#person\"},\"description\":\"Trong b\\u00e0i vi\\u1ebft n\\u00e0y m\\u00ecnh s\\u1ebd gi\\u1ea3i th\\u00edch kh\\u00e1i ni\\u1ec7m payable function Solidity, c\\u01a1 ch\\u1ebf EVM g\\u1eedi ETH t\\u1edbi Smart Contract c\\u00f9ng v\\u00e0i kinh nghi\\u1ec7m c\\u00e1 nh\\u00e2n.\",\"name\":\"Payable Function Solidity: T\\u1eeb ETH t\\u1edbi smart contract (P1)\",\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#richSnippet\",\"isPartOf\":{\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#webpage\"},\"image\":{\"@id\":\"https://s2.cystack.net/tutorial/11162135/payable-function-solidity.png\"},\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https://blog.cystack.org/tutorial/vi/2025/05/11/payable-function-solidity/#webpage\"}}]}</script>\n"}