# Chainlink Code Walkthrough **Published by:** [Hicss](https://paragraph.com/@freesuton/) **Published on:** 2022-06-14 **URL:** https://paragraph.com/@freesuton/chainlink-code-walkthrough ## Content Prerequisite knowledge: ERC-667: Allow tokens to be transferred to contracts and have the contract trigger logic for how to respond to receiving the tokens within a single transaction. This adds a new function to ERC20 token contracts, transferAndCall which can be called to transfer tokens to a contract and then call the contract with the additional data provided. Once the token is transferred, the token contract calls the receiving contract's function onTokenTransfer(address,uint256,bytes) and triggers an event Transfer(address,address,uint,bytes), following the convention set in ERC223. How Chainlink works:Code Flow: ## Publication Information - [Hicss](https://paragraph.com/@freesuton/): Publication homepage - [All Posts](https://paragraph.com/@freesuton/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@freesuton): Subscribe to updates - [Twitter](https://twitter.com/freesuton): Follow on Twitter