All URIs are relative to https://beta.usemoon.ai
Method | HTTP request | Description |
---|---|---|
createSolanaAccount | POST /solana | |
getSolanaAccount | GET /solana/{accountName} | |
listSolanaAccounts | GET /solana | |
signSolanaTransaction | POST /solana/{accountName}/sign-tx |
open class func createSolanaAccount(authorization: String, solanaInput: SolanaInput, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let solanaInput = SolanaInput(network: "network_example", privateKey: "privateKey_example") // SolanaInput |
SolanaAPI.createSolanaAccount(authorization: authorization, solanaInput: solanaInput) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
solanaInput | SolanaInput |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getSolanaAccount(authorization: String, accountName: String, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let accountName = "accountName_example" // String |
SolanaAPI.getSolanaAccount(authorization: authorization, accountName: accountName) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
accountName | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func listSolanaAccounts(authorization: String, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
SolanaAPI.listSolanaAccounts(authorization: authorization) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func signSolanaTransaction(authorization: String, accountName: String, solanaTransactionInput: SolanaTransactionInput, completion: @escaping (_ data: SolanaAPIResponse?, _ error: Error?) -> Void)
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let accountName = "accountName_example" // String |
let solanaTransactionInput = SolanaTransactionInput(to: "to_example", value: 123, network: "network_example", compress: false) // SolanaTransactionInput |
SolanaAPI.signSolanaTransaction(authorization: authorization, accountName: accountName, solanaTransactionInput: solanaTransactionInput) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
accountName | String | ||
solanaTransactionInput | SolanaTransactionInput |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]