Documentation ¶
Overview ¶
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2023 Coinbase Global, Inc. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- func CreateWallet(w http.ResponseWriter, r *http.Request)
- func GenerateAddress(w http.ResponseWriter, r *http.Request)
- func GetAddress(w http.ResponseWriter, r *http.Request)
- func GetWallet(w http.ResponseWriter, r *http.Request)
- func ListAddresses(w http.ResponseWriter, r *http.Request)
- func ListBalances(w http.ResponseWriter, r *http.Request)
- func ListWallets(w http.ResponseWriter, r *http.Request)
- func WaitWallet(w http.ResponseWriter, r *http.Request)
- type Balance
- type ListBalancesResponse
- type WaitWalletRequest
- type WalletResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWallet ¶
func CreateWallet(w http.ResponseWriter, r *http.Request)
func GenerateAddress ¶
func GenerateAddress(w http.ResponseWriter, r *http.Request)
func GetAddress ¶
func GetAddress(w http.ResponseWriter, r *http.Request)
func ListAddresses ¶
func ListAddresses(w http.ResponseWriter, r *http.Request)
func ListBalances ¶
func ListBalances(w http.ResponseWriter, r *http.Request)
func ListWallets ¶
func ListWallets(w http.ResponseWriter, r *http.Request)
func WaitWallet ¶
func WaitWallet(w http.ResponseWriter, r *http.Request)
Types ¶
type Balance ¶
type Balance struct { // The resource name of the Balance. // Format: networks/{network_id}/addresses/{address_id}/balances/{balance_id} Name string `json:"name,omitempty"` // The resource name of the Asset to which this Balance corresponds. // Format: networks/{network}/assets/{asset} Asset string `json:"asset,omitempty"` // The amount of the Asset, denominated in atomic units of the asset (e.g., Wei for Ether), // as a base-10 number. Amount string `json:"amount,omitempty"` // The resource name of the MPCWallet to which this Balance belongs. // Format: pools/{pool}/mpcWallets/{mpcWallet} MpcWallet string `json:"mpc_wallet,omitempty"` Symbol string `json:"symbol,omitempty"` Decimals int32 `json:"decimals,omitempty"` Definition v1blockchain.Asset_Definition `json:"definition,omitempty"` }
Extension of API's balance
type ListBalancesResponse ¶
type ListBalancesResponse struct {
Balances []*Balance `json:"balances"`
}
type WaitWalletRequest ¶
type WaitWalletRequest struct {
Operation string `json:"operation,omitempty"`
}
type WalletResponse ¶
Click to show internal directories.
Click to hide internal directories.