.. _sphx_glr_api_gallery_contracts_tokens:
Token standards
---------------
Fungible and non-fungible tokens, and the races and traps in their interfaces.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/contracts/tokens/images/thumb/sphx_glr_plot_01_erc20_approve_race_thumb.png
:alt:
:doc:`/api/gallery/contracts/tokens/plot_01_erc20_approve_race`
.. raw:: html
ERC-20 tokens and the approve/transferFrom race (2015)
.. raw:: html
.. only:: html
.. image:: /api/gallery/contracts/tokens/images/thumb/sphx_glr_plot_02_erc721_safe_transfers_thumb.png
:alt:
:doc:`/api/gallery/contracts/tokens/plot_02_erc721_safe_transfers`
.. raw:: html
ERC-721 non-fungible tokens and safe transfers (2018)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/contracts/tokens/plot_01_erc20_approve_race
/api/gallery/contracts/tokens/plot_02_erc721_safe_transfers