Skip to content

Latest commit

 

History

History
2072 lines (1347 loc) · 60 KB

CorecontractsApi.md

File metadata and controls

2072 lines (1347 loc) · 60 KB

\CorecontractsApi

All URIs are relative to http://localhost

Method HTTP request Description
AccountsGetAccountBalance Get /v1/chains/{chainID}/core/accounts/account/{agentID}/balance Get all assets belonging to an account
AccountsGetAccountFoundries Get /v1/chains/{chainID}/core/accounts/account/{agentID}/foundries Get all foundries owned by an account
AccountsGetAccountNFTIDs Get /v1/chains/{chainID}/core/accounts/account/{agentID}/nfts Get all NFT ids belonging to an account
AccountsGetAccountNonce Get /v1/chains/{chainID}/core/accounts/account/{agentID}/nonce Get the current nonce of an account
AccountsGetAccounts Get /v1/chains/{chainID}/core/accounts Get a list of all accounts
AccountsGetFoundryOutput Get /v1/chains/{chainID}/core/accounts/foundry_output/{serialNumber} Get the foundry output
AccountsGetNFTData Get /v1/chains/{chainID}/core/accounts/nftdata/{nftID} Get the NFT data by an ID
AccountsGetNativeTokenIDRegistry Get /v1/chains/{chainID}/core/accounts/token_registry Get a list of all registries
AccountsGetTotalAssets Get /v1/chains/{chainID}/core/accounts/total_assets Get all stored assets
BlobsGetAllBlobs Get /v1/chains/{chainID}/core/blobs Get all stored blobs
BlobsGetBlobInfo Get /v1/chains/{chainID}/core/blobs/{blobHash} Get all fields of a blob
BlobsGetBlobValue Get /v1/chains/{chainID}/core/blobs/{blobHash}/data/{fieldKey} Get the value of the supplied field (key)
BlocklogGetBlockInfo Get /v1/chains/{chainID}/core/blocklog/blocks/{blockIndex} Get the block info of a certain block index
BlocklogGetControlAddresses Get /v1/chains/{chainID}/core/blocklog/controladdresses Get the control addresses
BlocklogGetEventsOfBlock Get /v1/chains/{chainID}/core/blocklog/events/block/{blockIndex} Get events of a block
BlocklogGetEventsOfContract Get /v1/chains/{chainID}/core/blocklog/events/contract/{contractHname} Get events of a contract
BlocklogGetEventsOfLatestBlock Get /v1/chains/{chainID}/core/blocklog/events/block/latest Get events of the latest block
BlocklogGetEventsOfRequest Get /v1/chains/{chainID}/core/blocklog/events/request/{requestID} Get events of a request
BlocklogGetLatestBlockInfo Get /v1/chains/{chainID}/core/blocklog/blocks/latest Get the block info of the latest block
BlocklogGetRequestIDsForBlock Get /v1/chains/{chainID}/core/blocklog/blocks/{blockIndex}/requestids Get the request ids for a certain block index
BlocklogGetRequestIDsForLatestBlock Get /v1/chains/{chainID}/core/blocklog/blocks/latest/requestids Get the request ids for the latest block
BlocklogGetRequestIsProcessed Get /v1/chains/{chainID}/core/blocklog/requests/{requestID}/is_processed Get the request processing status
BlocklogGetRequestReceipt Get /v1/chains/{chainID}/core/blocklog/requests/{requestID} Get the receipt of a certain request id
BlocklogGetRequestReceiptsOfBlock Get /v1/chains/{chainID}/core/blocklog/blocks/{blockIndex}/receipts Get all receipts of a certain block
BlocklogGetRequestReceiptsOfLatestBlock Get /v1/chains/{chainID}/core/blocklog/blocks/latest/receipts Get all receipts of the latest block
ErrorsGetErrorMessageFormat Get /v1/chains/{chainID}/core/errors/{contractHname}/message/{errorID} Get the error message format of a specific error id
GovernanceGetAllowedStateControllerAddresses Get /v1/chains/{chainID}/core/governance/allowedstatecontrollers Get the allowed state controller addresses
GovernanceGetChainInfo Get /v1/chains/{chainID}/core/governance/chaininfo Get the chain info
GovernanceGetChainOwner Get /v1/chains/{chainID}/core/governance/chainowner Get the chain owner

AccountsGetAccountBalance

AssetsResponse AccountsGetAccountBalance(ctx, chainID, agentID).Execute()

Get all assets belonging to an account

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    agentID := "agentID_example" // string | AgentID (Bech32 for WasmVM | Hex for EVM)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetAccountBalance(context.Background(), chainID, agentID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetAccountBalance``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetAccountBalance`: AssetsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetAccountBalance`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
agentID string AgentID (Bech32 for WasmVM Hex for EVM)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetAccountBalanceRequest struct via the builder pattern

Name Type Description Notes

Return type

AssetsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetAccountFoundries

AccountFoundriesResponse AccountsGetAccountFoundries(ctx, chainID, agentID).Execute()

Get all foundries owned by an account

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    agentID := "agentID_example" // string | AgentID (Bech32 for WasmVM | Hex for EVM)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetAccountFoundries(context.Background(), chainID, agentID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetAccountFoundries``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetAccountFoundries`: AccountFoundriesResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetAccountFoundries`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
agentID string AgentID (Bech32 for WasmVM Hex for EVM)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetAccountFoundriesRequest struct via the builder pattern

Name Type Description Notes

Return type

AccountFoundriesResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetAccountNFTIDs

AccountNFTsResponse AccountsGetAccountNFTIDs(ctx, chainID, agentID).Execute()

Get all NFT ids belonging to an account

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    agentID := "agentID_example" // string | AgentID (Bech32 for WasmVM | Hex for EVM)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetAccountNFTIDs(context.Background(), chainID, agentID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetAccountNFTIDs``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetAccountNFTIDs`: AccountNFTsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetAccountNFTIDs`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
agentID string AgentID (Bech32 for WasmVM Hex for EVM)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetAccountNFTIDsRequest struct via the builder pattern

Name Type Description Notes

Return type

AccountNFTsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetAccountNonce

AccountNonceResponse AccountsGetAccountNonce(ctx, chainID, agentID).Execute()

Get the current nonce of an account

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    agentID := "agentID_example" // string | AgentID (Bech32 for WasmVM | Hex for EVM)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetAccountNonce(context.Background(), chainID, agentID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetAccountNonce``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetAccountNonce`: AccountNonceResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetAccountNonce`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
agentID string AgentID (Bech32 for WasmVM Hex for EVM)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetAccountNonceRequest struct via the builder pattern

Name Type Description Notes

Return type

AccountNonceResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetAccounts

AccountListResponse AccountsGetAccounts(ctx, chainID).Execute()

Get a list of all accounts

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetAccounts(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetAccounts``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetAccounts`: AccountListResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetAccounts`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetAccountsRequest struct via the builder pattern

Name Type Description Notes

Return type

AccountListResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetFoundryOutput

FoundryOutputResponse AccountsGetFoundryOutput(ctx, chainID, serialNumber).Execute()

Get the foundry output

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    serialNumber := uint32(56) // uint32 | Serial Number (uint32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetFoundryOutput(context.Background(), chainID, serialNumber).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetFoundryOutput``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetFoundryOutput`: FoundryOutputResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetFoundryOutput`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
serialNumber uint32 Serial Number (uint32)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetFoundryOutputRequest struct via the builder pattern

Name Type Description Notes

Return type

FoundryOutputResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetNFTData

NFTDataResponse AccountsGetNFTData(ctx, chainID, nftID).Execute()

Get the NFT data by an ID

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    nftID := "nftID_example" // string | NFT ID (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetNFTData(context.Background(), chainID, nftID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetNFTData``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetNFTData`: NFTDataResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetNFTData`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
nftID string NFT ID (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetNFTDataRequest struct via the builder pattern

Name Type Description Notes

Return type

NFTDataResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetNativeTokenIDRegistry

NativeTokenIDRegistryResponse AccountsGetNativeTokenIDRegistry(ctx, chainID).Execute()

Get a list of all registries

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetNativeTokenIDRegistry(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetNativeTokenIDRegistry``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetNativeTokenIDRegistry`: NativeTokenIDRegistryResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetNativeTokenIDRegistry`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetNativeTokenIDRegistryRequest struct via the builder pattern

Name Type Description Notes

Return type

NativeTokenIDRegistryResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AccountsGetTotalAssets

AssetsResponse AccountsGetTotalAssets(ctx, chainID).Execute()

Get all stored assets

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.AccountsGetTotalAssets(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.AccountsGetTotalAssets``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AccountsGetTotalAssets`: AssetsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.AccountsGetTotalAssets`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiAccountsGetTotalAssetsRequest struct via the builder pattern

Name Type Description Notes

Return type

AssetsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlobsGetAllBlobs

BlobListResponse BlobsGetAllBlobs(ctx, chainID).Execute()

Get all stored blobs

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlobsGetAllBlobs(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlobsGetAllBlobs``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlobsGetAllBlobs`: BlobListResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlobsGetAllBlobs`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlobsGetAllBlobsRequest struct via the builder pattern

Name Type Description Notes

Return type

BlobListResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlobsGetBlobInfo

BlobInfoResponse BlobsGetBlobInfo(ctx, chainID, blobHash).Execute()

Get all fields of a blob

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blobHash := "blobHash_example" // string | BlobHash (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlobsGetBlobInfo(context.Background(), chainID, blobHash).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlobsGetBlobInfo``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlobsGetBlobInfo`: BlobInfoResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlobsGetBlobInfo`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blobHash string BlobHash (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiBlobsGetBlobInfoRequest struct via the builder pattern

Name Type Description Notes

Return type

BlobInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlobsGetBlobValue

BlobValueResponse BlobsGetBlobValue(ctx, chainID, blobHash, fieldKey).Execute()

Get the value of the supplied field (key)

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blobHash := "blobHash_example" // string | BlobHash (Hex)
    fieldKey := "fieldKey_example" // string | FieldKey (String)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlobsGetBlobValue(context.Background(), chainID, blobHash, fieldKey).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlobsGetBlobValue``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlobsGetBlobValue`: BlobValueResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlobsGetBlobValue`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blobHash string BlobHash (Hex)
fieldKey string FieldKey (String)

Other Parameters

Other parameters are passed through a pointer to a apiBlobsGetBlobValueRequest struct via the builder pattern

Name Type Description Notes

Return type

BlobValueResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetBlockInfo

BlockInfoResponse BlocklogGetBlockInfo(ctx, chainID, blockIndex).Execute()

Get the block info of a certain block index

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blockIndex := uint32(56) // uint32 | BlockIndex (uint32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetBlockInfo(context.Background(), chainID, blockIndex).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetBlockInfo``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetBlockInfo`: BlockInfoResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetBlockInfo`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blockIndex uint32 BlockIndex (uint32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetBlockInfoRequest struct via the builder pattern

Name Type Description Notes

Return type

BlockInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetControlAddresses

ControlAddressesResponse BlocklogGetControlAddresses(ctx, chainID).Execute()

Get the control addresses

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetControlAddresses(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetControlAddresses``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetControlAddresses`: ControlAddressesResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetControlAddresses`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetControlAddressesRequest struct via the builder pattern

Name Type Description Notes

Return type

ControlAddressesResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetEventsOfBlock

EventsResponse BlocklogGetEventsOfBlock(ctx, chainID, blockIndex).Execute()

Get events of a block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blockIndex := uint32(56) // uint32 | BlockIndex (uint32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetEventsOfBlock(context.Background(), chainID, blockIndex).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetEventsOfBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetEventsOfBlock`: EventsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetEventsOfBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blockIndex uint32 BlockIndex (uint32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetEventsOfBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

EventsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetEventsOfContract

EventsResponse BlocklogGetEventsOfContract(ctx, chainID, contractHname).Execute()

Get events of a contract

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    contractHname := "contractHname_example" // string | The contract hname (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetEventsOfContract(context.Background(), chainID, contractHname).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetEventsOfContract``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetEventsOfContract`: EventsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetEventsOfContract`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
contractHname string The contract hname (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetEventsOfContractRequest struct via the builder pattern

Name Type Description Notes

Return type

EventsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetEventsOfLatestBlock

EventsResponse BlocklogGetEventsOfLatestBlock(ctx, chainID).Execute()

Get events of the latest block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetEventsOfLatestBlock(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetEventsOfLatestBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetEventsOfLatestBlock`: EventsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetEventsOfLatestBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetEventsOfLatestBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

EventsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetEventsOfRequest

EventsResponse BlocklogGetEventsOfRequest(ctx, chainID, requestID).Execute()

Get events of a request

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    requestID := "requestID_example" // string | RequestID (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetEventsOfRequest(context.Background(), chainID, requestID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetEventsOfRequest``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetEventsOfRequest`: EventsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetEventsOfRequest`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
requestID string RequestID (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetEventsOfRequestRequest struct via the builder pattern

Name Type Description Notes

Return type

EventsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetLatestBlockInfo

BlockInfoResponse BlocklogGetLatestBlockInfo(ctx, chainID).Execute()

Get the block info of the latest block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetLatestBlockInfo(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetLatestBlockInfo``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetLatestBlockInfo`: BlockInfoResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetLatestBlockInfo`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetLatestBlockInfoRequest struct via the builder pattern

Name Type Description Notes

Return type

BlockInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestIDsForBlock

RequestIDsResponse BlocklogGetRequestIDsForBlock(ctx, chainID, blockIndex).Execute()

Get the request ids for a certain block index

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blockIndex := uint32(56) // uint32 | BlockIndex (uint32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestIDsForBlock(context.Background(), chainID, blockIndex).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestIDsForBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestIDsForBlock`: RequestIDsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestIDsForBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blockIndex uint32 BlockIndex (uint32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestIDsForBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

RequestIDsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestIDsForLatestBlock

RequestIDsResponse BlocklogGetRequestIDsForLatestBlock(ctx, chainID).Execute()

Get the request ids for the latest block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestIDsForLatestBlock(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestIDsForLatestBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestIDsForLatestBlock`: RequestIDsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestIDsForLatestBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestIDsForLatestBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

RequestIDsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestIsProcessed

RequestProcessedResponse BlocklogGetRequestIsProcessed(ctx, chainID, requestID).Execute()

Get the request processing status

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    requestID := "requestID_example" // string | RequestID (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestIsProcessed(context.Background(), chainID, requestID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestIsProcessed``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestIsProcessed`: RequestProcessedResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestIsProcessed`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
requestID string RequestID (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestIsProcessedRequest struct via the builder pattern

Name Type Description Notes

Return type

RequestProcessedResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestReceipt

RequestReceiptResponse BlocklogGetRequestReceipt(ctx, chainID, requestID).Execute()

Get the receipt of a certain request id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    requestID := "requestID_example" // string | RequestID (Hex)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestReceipt(context.Background(), chainID, requestID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestReceipt``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestReceipt`: RequestReceiptResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceipt`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
requestID string RequestID (Hex)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestReceiptRequest struct via the builder pattern

Name Type Description Notes

Return type

RequestReceiptResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestReceiptsOfBlock

BlockReceiptsResponse BlocklogGetRequestReceiptsOfBlock(ctx, chainID, blockIndex).Execute()

Get all receipts of a certain block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    blockIndex := uint32(56) // uint32 | BlockIndex (uint32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestReceiptsOfBlock(context.Background(), chainID, blockIndex).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestReceiptsOfBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestReceiptsOfBlock`: BlockReceiptsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceiptsOfBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
blockIndex uint32 BlockIndex (uint32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestReceiptsOfBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

BlockReceiptsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

BlocklogGetRequestReceiptsOfLatestBlock

BlockReceiptsResponse BlocklogGetRequestReceiptsOfLatestBlock(ctx, chainID).Execute()

Get all receipts of the latest block

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.BlocklogGetRequestReceiptsOfLatestBlock(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.BlocklogGetRequestReceiptsOfLatestBlock``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `BlocklogGetRequestReceiptsOfLatestBlock`: BlockReceiptsResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceiptsOfLatestBlock`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiBlocklogGetRequestReceiptsOfLatestBlockRequest struct via the builder pattern

Name Type Description Notes

Return type

BlockReceiptsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ErrorsGetErrorMessageFormat

ErrorMessageFormatResponse ErrorsGetErrorMessageFormat(ctx, chainID, contractHname, errorID).Execute()

Get the error message format of a specific error id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)
    contractHname := "contractHname_example" // string | Contract (Hname as Hex)
    errorID := uint32(56) // uint32 | Error Id (uint16)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.ErrorsGetErrorMessageFormat(context.Background(), chainID, contractHname, errorID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.ErrorsGetErrorMessageFormat``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ErrorsGetErrorMessageFormat`: ErrorMessageFormatResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.ErrorsGetErrorMessageFormat`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)
contractHname string Contract (Hname as Hex)
errorID uint32 Error Id (uint16)

Other Parameters

Other parameters are passed through a pointer to a apiErrorsGetErrorMessageFormatRequest struct via the builder pattern

Name Type Description Notes

Return type

ErrorMessageFormatResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GovernanceGetAllowedStateControllerAddresses

GovAllowedStateControllerAddressesResponse GovernanceGetAllowedStateControllerAddresses(ctx, chainID).Execute()

Get the allowed state controller addresses

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.GovernanceGetAllowedStateControllerAddresses(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.GovernanceGetAllowedStateControllerAddresses``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GovernanceGetAllowedStateControllerAddresses`: GovAllowedStateControllerAddressesResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.GovernanceGetAllowedStateControllerAddresses`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiGovernanceGetAllowedStateControllerAddressesRequest struct via the builder pattern

Name Type Description Notes

Return type

GovAllowedStateControllerAddressesResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GovernanceGetChainInfo

GovChainInfoResponse GovernanceGetChainInfo(ctx, chainID).Execute()

Get the chain info

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.GovernanceGetChainInfo(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.GovernanceGetChainInfo``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GovernanceGetChainInfo`: GovChainInfoResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.GovernanceGetChainInfo`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiGovernanceGetChainInfoRequest struct via the builder pattern

Name Type Description Notes

Return type

GovChainInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GovernanceGetChainOwner

GovChainOwnerResponse GovernanceGetChainOwner(ctx, chainID).Execute()

Get the chain owner

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    chainID := "chainID_example" // string | ChainID (Bech32)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.CorecontractsApi.GovernanceGetChainOwner(context.Background(), chainID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `CorecontractsApi.GovernanceGetChainOwner``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GovernanceGetChainOwner`: GovChainOwnerResponse
    fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.GovernanceGetChainOwner`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
chainID string ChainID (Bech32)

Other Parameters

Other parameters are passed through a pointer to a apiGovernanceGetChainOwnerRequest struct via the builder pattern

Name Type Description Notes

Return type

GovChainOwnerResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]