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 |
AssetsResponse AccountsGetAccountBalance(ctx, chainID, agentID).Execute()
Get all assets belonging to an account
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)
}
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 are passed through a pointer to a apiAccountsGetAccountBalanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountFoundriesResponse AccountsGetAccountFoundries(ctx, chainID, agentID).Execute()
Get all foundries owned by an account
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)
}
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 are passed through a pointer to a apiAccountsGetAccountFoundriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountNFTsResponse AccountsGetAccountNFTIDs(ctx, chainID, agentID).Execute()
Get all NFT ids belonging to an account
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)
}
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 are passed through a pointer to a apiAccountsGetAccountNFTIDsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountNonceResponse AccountsGetAccountNonce(ctx, chainID, agentID).Execute()
Get the current nonce of an account
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)
}
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 are passed through a pointer to a apiAccountsGetAccountNonceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountListResponse AccountsGetAccounts(ctx, chainID).Execute()
Get a list of all accounts
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiAccountsGetAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FoundryOutputResponse AccountsGetFoundryOutput(ctx, chainID, serialNumber).Execute()
Get the foundry output
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)
}
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 are passed through a pointer to a apiAccountsGetFoundryOutputRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NFTDataResponse AccountsGetNFTData(ctx, chainID, nftID).Execute()
Get the NFT data by an ID
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)
}
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 are passed through a pointer to a apiAccountsGetNFTDataRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NativeTokenIDRegistryResponse AccountsGetNativeTokenIDRegistry(ctx, chainID).Execute()
Get a list of all registries
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiAccountsGetNativeTokenIDRegistryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetsResponse AccountsGetTotalAssets(ctx, chainID).Execute()
Get all stored assets
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiAccountsGetTotalAssetsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlobListResponse BlobsGetAllBlobs(ctx, chainID).Execute()
Get all stored blobs
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlobsGetAllBlobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlobInfoResponse BlobsGetBlobInfo(ctx, chainID, blobHash).Execute()
Get all fields of a blob
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)
}
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 are passed through a pointer to a apiBlobsGetBlobInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlobValueResponse BlobsGetBlobValue(ctx, chainID, blobHash, fieldKey).Execute()
Get the value of the supplied field (key)
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)
}
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 are passed through a pointer to a apiBlobsGetBlobValueRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlockInfoResponse BlocklogGetBlockInfo(ctx, chainID, blockIndex).Execute()
Get the block info of a certain block index
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)
}
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 are passed through a pointer to a apiBlocklogGetBlockInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControlAddressesResponse BlocklogGetControlAddresses(ctx, chainID).Execute()
Get the control addresses
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlocklogGetControlAddressesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventsResponse BlocklogGetEventsOfBlock(ctx, chainID, blockIndex).Execute()
Get events of a block
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)
}
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 are passed through a pointer to a apiBlocklogGetEventsOfBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventsResponse BlocklogGetEventsOfContract(ctx, chainID, contractHname).Execute()
Get events of a contract
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)
}
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 are passed through a pointer to a apiBlocklogGetEventsOfContractRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventsResponse BlocklogGetEventsOfLatestBlock(ctx, chainID).Execute()
Get events of the latest block
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlocklogGetEventsOfLatestBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventsResponse BlocklogGetEventsOfRequest(ctx, chainID, requestID).Execute()
Get events of a request
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)
}
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 are passed through a pointer to a apiBlocklogGetEventsOfRequestRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlockInfoResponse BlocklogGetLatestBlockInfo(ctx, chainID).Execute()
Get the block info of the latest block
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlocklogGetLatestBlockInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequestIDsResponse BlocklogGetRequestIDsForBlock(ctx, chainID, blockIndex).Execute()
Get the request ids for a certain block index
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)
}
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 are passed through a pointer to a apiBlocklogGetRequestIDsForBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequestIDsResponse BlocklogGetRequestIDsForLatestBlock(ctx, chainID).Execute()
Get the request ids for the latest block
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlocklogGetRequestIDsForLatestBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequestProcessedResponse BlocklogGetRequestIsProcessed(ctx, chainID, requestID).Execute()
Get the request processing status
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)
}
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 are passed through a pointer to a apiBlocklogGetRequestIsProcessedRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReceiptResponse BlocklogGetRequestReceipt(ctx, chainID, requestID).Execute()
Get the receipt of a certain request id
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`: ReceiptResponse
fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceipt`: %v\n", resp)
}
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 are passed through a pointer to a apiBlocklogGetRequestReceiptRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ReceiptResponse BlocklogGetRequestReceiptsOfBlock(ctx, chainID, blockIndex).Execute()
Get all receipts of a certain block
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`: []ReceiptResponse
fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceiptsOfBlock`: %v\n", resp)
}
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 are passed through a pointer to a apiBlocklogGetRequestReceiptsOfBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ReceiptResponse BlocklogGetRequestReceiptsOfLatestBlock(ctx, chainID).Execute()
Get all receipts of the latest block
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`: []ReceiptResponse
fmt.Fprintf(os.Stdout, "Response from `CorecontractsApi.BlocklogGetRequestReceiptsOfLatestBlock`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiBlocklogGetRequestReceiptsOfLatestBlockRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorMessageFormatResponse ErrorsGetErrorMessageFormat(ctx, chainID, contractHname, errorID).Execute()
Get the error message format of a specific error id
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)
}
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 are passed through a pointer to a apiErrorsGetErrorMessageFormatRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GovAllowedStateControllerAddressesResponse GovernanceGetAllowedStateControllerAddresses(ctx, chainID).Execute()
Get the allowed state controller addresses
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiGovernanceGetAllowedStateControllerAddressesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GovAllowedStateControllerAddressesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GovChainInfoResponse GovernanceGetChainInfo(ctx, chainID).Execute()
Get the chain info
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiGovernanceGetChainInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GovChainOwnerResponse GovernanceGetChainOwner(ctx, chainID).Execute()
Get the chain owner
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
chainID | string | ChainID (Bech32) |
Other parameters are passed through a pointer to a apiGovernanceGetChainOwnerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]