Skip to main content

InitialiseTokenTaps

InitialiseTokenTaps initialises the available token taps.

Method Options​

Authorisation specification of the InitialiseTokenTaps method.

TypeMETHOD_TYPE_WRITE
Access LevelMETHOD_ACCESS_LEVEL_PUBLIC
Roles

    Parameters​

    Request and response parameter message overview:

    Input: InitialiseTokenTapsRequest Message​

    No parameters required.

    Returns: InitialiseTokenTapsResponse Message​

    No response fields documented.

    Code Examples​

    Select supported SDK in the language of your choice for a full example of how to invoke the this method:

    package main

    import (
    "context"
    "log"

    token_tapv1 "github.com/meshtrade/api/go/testing/ledger/token_tap/v1"
    )

    func main() {
    ctx := context.Background()

    // Default configuration is used and credentials come from MESH_API_CREDENTIALS
    // environment variable or default discovery methods. Zero config required
    // unless you want custom configuration.
    service, err := token_tapv1.NewTokenTapService()
    if err != nil {
    log.Fatalf("Failed to create service: %v", err)
    }
    defer service.Close()

    // Initialize the token tapping infrastructure
    // The InitialiseTokenTapsRequest takes no parameters
    request := &token_tapv1.InitialiseTokenTapsRequest{}

    // Call the InitialiseTokenTaps method to set up token tapping
    response, err := service.InitialiseTokenTaps(ctx, request)
    if err != nil {
    log.Fatalf("InitialiseTokenTaps failed: %v", err)
    }

    // Token tapping infrastructure has been initialized successfully
    log.Printf("Token tapping infrastructure initialized successfully: %+v", response)
    }

    Advanced Configuration​

    For advanced client configuration options (custom endpoints, TLS settings, timeouts), see the SDK Configuration Guide.

    Other Methods​