How do I withdraw my smart contract token?

To withdraw a token balance, you need to execute the transfer() function on the token contract . So in order to withdraw all tokens, you need to execute the transfer() function on all token contracts. You can create a function that withdraws any ERC-20 token based on the token contract address that you pass as an input.

Read more

Is a token just a smart contract?

A token contract is simply an Ethereum smart contract . “Sending tokens” actually means “calling a method on a smart contract that someone wrote and deployed”. At the end of the day, a token contract is not much more a mapping of addresses to balances, plus some methods to add and subtract from those balances.

Read more