Repository navigation
Expand file tree
/
Copy pathmodel_general_airdrop_request.go
More file actions
110 lines (87 loc) · 9.76 KB
/
Copy pathmodel_general_airdrop_request.go
File metadata and controls
110 lines (87 loc) · 9.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
The Blockchain API
# About Our vision is to make it super easy to interact with the decentralized web. We want you to be able to do this in any coding language and do it easily and quickly. You're a key part of our vision. We love feature requests! <a href=\"#section/Feature-Requests\">Make one!</a> # How to Use the API To use the API, you simply need to create an API key pair. Doing so takes less than a minute. Simply go to <a target=\"_blank\" href=\"https://dashboard.blockchainapi.com\">the dashboard</a>, create an account, and generate a key pair. You can now use this pair to make API requests. You must create your first pair via the dashboard. # Feature Requests Got a feature request? Submit it as an issue on <a target=\"_blank\" href=\"https://github.com/BL0CK-X/the-blockchain-api/issues/new/choose\">our GitHub repo</a> or [email us](mailto:info@blockchainapi.com). # Contact <figure> <img width=\"40px\" height=\"40px\" src=\"https://theblockchainapi-docs.s3.amazonaws.com/icons/phone.svg\" /> <figcaption style=\"textAlign:center;\">Text / Call: +1 (415) 888 4745 </figcaption> </figure> <a href=\"mailto:info@blockchainapi.com\" target=\"_blank\"> <figure> <img width=\"40px\" height=\"40px\" src=\"https://theblockchainapi-docs.s3.amazonaws.com/icons/email.svg\" /> <figcaption style=\"textAlign:center;\">Email us: info@blockchainapi.com</figcaption> </figure> </a> <a href=\"https://discord.gg/d49yzrZRAF\" target=\"_blank\"> <figure> <img width=\"40px\" height=\"40px\" src=\"https://theblockchainapi-docs.s3.amazonaws.com/icons/discord.svg\" /> <figcaption style=\"textAlign:center;\">Join our Discord</figcaption> </figure> </a> <a href=\"https://twitter.com/BlockchainAP1\" target=\"_blank\"> <figure> <img width=\"40px\" height=\"40px\" src=\"https://theblockchainapi-docs.s3.amazonaws.com/icons/twitter.svg\" /> <figcaption style=\"textAlign:center;\">Follow us on Twitter</figcaption> </figure> </a> <a href=\"https://github.com/BL0CK-X/the-blockchain-api\" target=\"_blank\"> <figure> <img width=\"40px\" height=\"40px\" src=\"https://theblockchainapi-docs.s3.amazonaws.com/icons/github.svg\" /> <figcaption style=\"textAlign:center;\">Star us on Github</figcaption> </figure> </a> # Security Common dogma is to never give out your seed phrase. We agree. It's a matter of security, and anyone who has your seed phrase can irreversibly empty your wallet. <b>When using an API endpoint that requires a seed phrase, we highly recommend that users use or create a wallet that they do not use as their primary wallet.</b> How you make this work depends on what you're doing. If you're minting an NFT for example, we recommend creating a new wallet and then transferring just enough SOL to that wallet to mint the NFT. This is possible on Solana because such transactions cost less than a penny. We will have more tutorials in the future that make it easier for you to be secure when using our API. We have easy-to-use endpoints for <a href=\"#tag/Solana-Wallet/paths/~1solana~1wallet~1secret_recovery_phrase/post\">creating a new seed phrase</a> and then <a href=\"#tag/Solana-Wallet/paths/~1solana~1wallet~1public_key/post\">deriving a public key</a> to enable you to transfer to that new wallet. Let's have a constructive dialog about this. Feel free to <a href=\"#section/Contact\">contact us</a>. I made a video discussing this matter <a target=\"_blank\" href=\"https://youtu.be/m9unUb8Z9qU\">here</a>. Note: We have had a couple of individuals harrass and threaten us. These individuals did <b>not</b> try our API or speak to anyone who has used it. They simply saw that we require a seed phrase for certain endpoints and figured that the proper response was to attack us. (I explain why we do <a target=\"_blank\" href=\"https://youtu.be/m9unUb8Z9qU\">here</a>.) Such harrassment and threats are not only harmful, but they are also illegal, and we will report offenders. Do not harrass us. Rather, feel free to discuss your concerns with us and we will be more than happy to work with you to come up with a solution. # Pricing <b>Each user receives 50,000 free credits each month.</b> Each endpoint costs a certain amount credits. Scroll below to any endpoint (i.e., function) to see how much each endpoint costs. (Or CMD+F `Cost: 0 Credit`, for example) You can learn more about our pricing <a href=\"https://dashboard.blockchainapi.com/billing\" target=\"_blank\">here</a>. We frequently do custom plans. If our pricing doesn't work for you, <a href=\"#section/Contact\">contact us</a>. If you have questions, concerns, feedback, or ideas, <a href=\"#section/Contact\">contact us</a>. # SDKs / API Wrappers We have examples using both our <a href=\"https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples\" target=\"_blank\">Python wrapper and our JavaScript wrapper here</a>. We have built a custom <a href=\"https://github.com/BL0CK-X/the-blockchain-api-python-wrapper\" target=\"_blank\">Python wrapper</a>. `pip install theblockchainapi` We also have published a <a href=\"https://github.com/BL0CK-X/theblockchainapi-javascript-wrapper\" target=\"_blank\">JavaScript Wrapper</a>. `npm install theblockchainapi` We also have auto-generated wrappers for the following languages: - <a href=\"https://github.com/BL0CK-X/theblockchainapi-go-wrapper\" target = \"_blank\">Go</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-java-wrapper\" target = \"_blank\">Java</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-kotlin-wrapper\" target = \"_blank\">Kotlin</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-php-wrapper\" target = \"_blank\">PHP</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-swift-wrapper\" target = \"_blank\">Swift5</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-typescript-wrapper\" target = \"_blank\">TypeScript</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-csharp-wrapper\" target = \"_blank\">C#</a> - <a href=\"https://github.com/BL0CK-X/theblockchainapi-dart-wrapper\" target = \"_blank\">Dart</a> If you would like a different language as well, submit an issue <a href=\"https://github.com/BL0CK-X/theblockchainapi-wrappers/issues/new\" target=\"_blank\">here</a>. If you run into any bugs with the wrappers, submit an issue <a href=\"https://github.com/BL0CK-X/theblockchainapi-wrappers/issues/new\" target=\"_blank\">here</a>.
API version: null
Contact: info@blockchainapi.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// GeneralAirdropRequest struct for GeneralAirdropRequest
type GeneralAirdropRequest struct {
// The address/public key to which to send the airdrop. Examples: - Solana: `GKNcUmNacSJo4S2Kq3DuYRYRGw3sNUfJ4tyqd198t6vQ` - Ethereum: `0xa84b9478d203cd25dF722e83C87590f8028f6aAA`
RecipientBlockchainIdentifier string `json:"recipient_blockchain_identifier"`
}
// NewGeneralAirdropRequest instantiates a new GeneralAirdropRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewGeneralAirdropRequest(recipientBlockchainIdentifier string) *GeneralAirdropRequest {
this := GeneralAirdropRequest{}
this.RecipientBlockchainIdentifier = recipientBlockchainIdentifier
return &this
}
// NewGeneralAirdropRequestWithDefaults instantiates a new GeneralAirdropRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewGeneralAirdropRequestWithDefaults() *GeneralAirdropRequest {
this := GeneralAirdropRequest{}
return &this
}
// GetRecipientBlockchainIdentifier returns the RecipientBlockchainIdentifier field value
func (o *GeneralAirdropRequest) GetRecipientBlockchainIdentifier() string {
if o == nil {
var ret string
return ret
}
return o.RecipientBlockchainIdentifier
}
// GetRecipientBlockchainIdentifierOk returns a tuple with the RecipientBlockchainIdentifier field value
// and a boolean to check if the value has been set.
func (o *GeneralAirdropRequest) GetRecipientBlockchainIdentifierOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.RecipientBlockchainIdentifier, true
}
// SetRecipientBlockchainIdentifier sets field value
func (o *GeneralAirdropRequest) SetRecipientBlockchainIdentifier(v string) {
o.RecipientBlockchainIdentifier = v
}
func (o GeneralAirdropRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["recipient_blockchain_identifier"] = o.RecipientBlockchainIdentifier
}
return json.Marshal(toSerialize)
}
type NullableGeneralAirdropRequest struct {
value *GeneralAirdropRequest
isSet bool
}
func (v NullableGeneralAirdropRequest) Get() *GeneralAirdropRequest {
return v.value
}
func (v *NullableGeneralAirdropRequest) Set(val *GeneralAirdropRequest) {
v.value = val
v.isSet = true
}
func (v NullableGeneralAirdropRequest) IsSet() bool {
return v.isSet
}
func (v *NullableGeneralAirdropRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGeneralAirdropRequest(val *GeneralAirdropRequest) *NullableGeneralAirdropRequest {
return &NullableGeneralAirdropRequest{value: val, isSet: true}
}
func (v NullableGeneralAirdropRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGeneralAirdropRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}