All URIs are relative to https://api.blockchainapi.com/v1
| Method | HTTP request | Description |
|---|---|---|
| DerivePrivateKey | Post /{blockchain}/wallet/private_key | Derive private key |
| DeriveWalletIdentifier | Post /{blockchain}/wallet/identifier | Derive wallet identifier |
| GeneratePrivateKey | Post /{blockchain}/wallet/generate/private_key | Generate private key |
| GenerateSeedPhrase | Post /{blockchain}/wallet/generate/secret_recovery_phrase | Generate seed phrase |
| GetAirdrop | Post /{blockchain}/wallet/airdrop | Get an airdrop |
| GetBalance | Post /{blockchain}/wallet/balance | Get wallet's balance of X |
| Transfer | Post /{blockchain}/wallet/transfer | Transfer crypto, a token, or an NFT to another wallet |
GeneralGeneratePrivateKeyResponse DerivePrivateKey(ctx, blockchain).SupplyWalletRequest(supplyWalletRequest).Execute()
Derive private key
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
supplyWalletRequest := *openapiclient.NewSupplyWalletRequest(openapiclient.GeneralWallet{GeneralB58PrivateKey: openapiclient.NewGeneralB58PrivateKey("B58PrivateKey_example")}) // SupplyWalletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.DerivePrivateKey(context.Background(), blockchain).SupplyWalletRequest(supplyWalletRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.DerivePrivateKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DerivePrivateKey`: GeneralGeneratePrivateKeyResponse
fmt.Fprintf(os.Stdout, "Response from `WalletApi.DerivePrivateKey`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiDerivePrivateKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
supplyWalletRequest | SupplyWalletRequest | |
GeneralGeneratePrivateKeyResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WalletIdentifiers DeriveWalletIdentifier(ctx, blockchain).SupplyWalletRequest(supplyWalletRequest).Execute()
Derive wallet identifier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
supplyWalletRequest := *openapiclient.NewSupplyWalletRequest(openapiclient.GeneralWallet{GeneralB58PrivateKey: openapiclient.NewGeneralB58PrivateKey("B58PrivateKey_example")}) // SupplyWalletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.DeriveWalletIdentifier(context.Background(), blockchain).SupplyWalletRequest(supplyWalletRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.DeriveWalletIdentifier``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeriveWalletIdentifier`: WalletIdentifiers
fmt.Fprintf(os.Stdout, "Response from `WalletApi.DeriveWalletIdentifier`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiDeriveWalletIdentifierRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
supplyWalletRequest | SupplyWalletRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneralGeneratePrivateKeyResponse GeneratePrivateKey(ctx, blockchain).Execute()
Generate private key
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.GeneratePrivateKey(context.Background(), blockchain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.GeneratePrivateKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GeneratePrivateKey`: GeneralGeneratePrivateKeyResponse
fmt.Fprintf(os.Stdout, "Response from `WalletApi.GeneratePrivateKey`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiGeneratePrivateKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
GeneralGeneratePrivateKeyResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneralSecretPhrase GenerateSeedPhrase(ctx, blockchain).GenerateSeedPhraseRequest(generateSeedPhraseRequest).Execute()
Generate seed phrase
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
generateSeedPhraseRequest := *openapiclient.NewGenerateSeedPhraseRequest() // GenerateSeedPhraseRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.GenerateSeedPhrase(context.Background(), blockchain).GenerateSeedPhraseRequest(generateSeedPhraseRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.GenerateSeedPhrase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GenerateSeedPhrase`: GeneralSecretPhrase
fmt.Fprintf(os.Stdout, "Response from `WalletApi.GenerateSeedPhrase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiGenerateSeedPhraseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
generateSeedPhraseRequest | GenerateSeedPhraseRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneralTransactionMadeResponse GetAirdrop(ctx, blockchain).GeneralAirdropRequest(generalAirdropRequest).Execute()
Get an airdrop
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
generalAirdropRequest := *openapiclient.NewGeneralAirdropRequest("RecipientBlockchainIdentifier_example") // GeneralAirdropRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.GetAirdrop(context.Background(), blockchain).GeneralAirdropRequest(generalAirdropRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.GetAirdrop``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAirdrop`: GeneralTransactionMadeResponse
fmt.Fprintf(os.Stdout, "Response from `WalletApi.GetAirdrop`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiGetAirdropRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
generalAirdropRequest | GeneralAirdropRequest | |
GeneralTransactionMadeResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneralBalanceResponse GetBalance(ctx, blockchain).GeneralBalanceRequest(generalBalanceRequest).Execute()
Get wallet's balance of X
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
generalBalanceRequest := *openapiclient.NewGeneralBalanceRequest() // GeneralBalanceRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.GetBalance(context.Background(), blockchain).GeneralBalanceRequest(generalBalanceRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.GetBalance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBalance`: GeneralBalanceResponse
fmt.Fprintf(os.Stdout, "Response from `WalletApi.GetBalance`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiGetBalanceRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
generalBalanceRequest | GeneralBalanceRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneralTransactionResponse Transfer(ctx, blockchain).GeneralTransferRequest(generalTransferRequest).Execute()
Transfer crypto, a token, or an NFT to another wallet
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockchain := "blockchain_example" // string | The blockchain you want to use
generalTransferRequest := *openapiclient.NewGeneralTransferRequest("RecipientBlockchainIdentifier_example") // GeneralTransferRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WalletApi.Transfer(context.Background(), blockchain).GeneralTransferRequest(generalTransferRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WalletApi.Transfer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Transfer`: GeneralTransactionResponse
fmt.Fprintf(os.Stdout, "Response from `WalletApi.Transfer`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| blockchain | string | The blockchain you want to use |
Other parameters are passed through a pointer to a apiTransferRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
generalTransferRequest | GeneralTransferRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]