SolanaAPI
SolanaAPI
All URIs are relative to https://beta.usemoon.ai
createSolanaAccount
POST /solana
getSolanaAccount
GET /solana/{accountName}
listSolanaAccounts
GET /solana
signSolanaTransaction
POST /solana/{accountName}/sign-tx
createSolanaAccount
    open class func createSolanaAccount(authorization: String, solanaInput: SolanaInput, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)Example
// 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)
    }
}Parameters
authorization
String
solanaInput
SolanaInput
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: application/json 
- Accept: application/json 
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getSolanaAccount
    open class func getSolanaAccount(authorization: String, accountName: String, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)Example
// 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)
    }
}Parameters
authorization
String
accountName
String
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: Not defined 
- Accept: application/json 
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listSolanaAccounts
    open class func listSolanaAccounts(authorization: String, completion: @escaping (_ data: AccountAPIResponse?, _ error: Error?) -> Void)Example
// 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)
    }
}Parameters
authorization
String
Return type
AccountAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: Not defined 
- Accept: application/json 
[Back to top] [Back to API list] [Back to Model list] [Back to README]
signSolanaTransaction
    open class func signSolanaTransaction(authorization: String, accountName: String, solanaTransactionInput: SolanaTransactionInput, completion: @escaping (_ data: SolanaAPIResponse?, _ error: Error?) -> Void)Example
// 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)
    }
}Parameters
authorization
String
accountName
String
solanaTransactionInput
SolanaTransactionInput
Return type
SolanaAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
- Content-Type: application/json 
- Accept: application/json 
[Back to top] [Back to API list] [Back to Model list] [Back to README]
