{% extends "base.html.jinja" %} {% block bodyclasses %}no-sidebar{% endblock %} {% block mainclasses %}landing page-community{% endblock %} {% block main %}

{% trans %}Start Building with Example Code{% endtrans %}

{% trans %}Code Samples{% endtrans %}
{# Submit Code Samples #}

{% trans %}Browse sample code for building common use cases on the XRP Ledger{% endtrans %}

{% set code_samples = all_code_samples() %} {% set lang_icons = { "cli": "assets/img/logos/cli.svg", "go": "assets/img/logos/golang.svg", "java": "assets/img/logos/java.svg", "js": "assets/img/logos/javascript.svg", "py": "assets/img/logos/python.svg", "http": "assets/img/logos/globe.svg", } %}

{% trans %}Contribute Code Samples{% endtrans %}

{% trans %}Help the XRPL community by submitting your
own code samples{% endtrans %}
Fork and clone

Fork the xrpl-dev-portal repo. Using git, clone the fork to your computer.

Add to folder

Add your sample code to the content/_code-samples/ folder. Be sure to include a README.md that summarizes what it does and anything else people should know about it.

Commit and push

Commit your changes and push them to your fork on GitHub.

Open a pull request

Open a pull request to the original repo. Maintainers will review your submission and suggest changes if necessary. If the code sample is helpful, it’ll be merged and added to XRPL.org!

{#Submit Code Samples#}
{% endblock %} {% block analytics %} {% endblock analytics %} {% block bottom_left_sidebar %} {% set lang_text = { "cli": "CLI", "go": "go", "java": "Java", "js": "JavaScript", "py": "Python", "http": "HTTP", } %}

Code Language

{% for lang in all_langs %}
{% endfor %}


{% endblock %} {% block endbody %} {% endblock %}