examples

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package examples provides example code snippets demonstrating the usage of the Sourcify Go client.

These examples showcase various API methods and illustrate how to interact with the Sourcify server to retrieve contract information, source code, metadata, file trees, and more.

The examples demonstrate the configuration of a custom HTTP client, setting base URLs, retry options, and making API calls to retrieve data from the Sourcify server.

Each example function provides a self-contained code snippet that can be executed independently. Simply copy the desired example function and execute it in your Go environment to see the output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Example_CheckAddresses

func Example_CheckAddresses()

Example_CheckAddresses demonstrates how to check contract addresses using the Sourcify client.

func Example_GetAllAddresses

func Example_GetAllAddresses()

Example_GetAllAddresses demonstrates how to retrieve all available contract addresses using the Sourcify client.

func Example_GetChains

func Example_GetChains()

Example_GetChains demonstrates how to retrieve chains using the Sourcify client.

func Example_GetFiles

func Example_GetFiles()

Example_GetFiles demonstrates how to retrieve source files for a contract using the Sourcify client.

func Example_GetHealth

func Example_GetHealth()

Example_GetHealth demonstrates how to check the health status of the Sourcify server using the Sourcify client.

func Example_GetMetadata

func Example_GetMetadata()

Example_GetMetadata demonstrates how to retrieve full metadata for a contract using the Sourcify client.

func Example_GetSourceCode

func Example_GetSourceCode()

Example_GetSourceCode demonstrates how to retrieve source code for a contract using the Sourcify client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL