Documentation ¶
Index ¶
- Constants
- func NewBlockfrostBackend(projectId string, network Network) apollotypes.Backend
- type Apollo
- func (a *Apollo) CheckTx(txHash serialization.TransactionId, checkInterval int) chan bool
- func (a *Apollo) DatumOf(utxo UTxO.UTxO) *PlutusData.PlutusData
- func (a *Apollo) FromTx(tx any) builder
- func (a *Apollo) MetadataOf(asset string) *Metadata.Metadata
- func (a *Apollo) NewTx(utils any) builder
- func (a *Apollo) SetWalletFromMnemonic(mnemonic string) *Apollo
- func (a *Apollo) SetWalletFromPrivateKeyBytes(privateKey []byte) *Apollo
- func (a *Apollo) SetWalletFromPrivateKeyHex(privateKey string) *Apollo
- func (a *Apollo) SwitchBackend(backend apollotypes.Backend) *Apollo
- func (a *Apollo) SwitchNetwork(network Network) *Apollo
- func (a *Apollo) UtxosAt(address Address.Address) []UTxO.UTxO
- func (a *Apollo) UtxosByAsset(asset string) []UTxO.UTxO
- type ApolloTransaction
- type Network
Constants ¶
View Source
const BLOCKFROST_BASE_URL_MAINNET = "https://cardano-mainnet.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_PREPROD = "https://cardano-preprod.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_PREVIEW = "https://cardano-preview.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_TESTNET = "https://cardano-testnet.blockfrost.io/api"
Variables ¶
This section is empty.
Functions ¶
func NewBlockfrostBackend ¶
func NewBlockfrostBackend(projectId string, network Network) apollotypes.Backend
Types ¶
type Apollo ¶
type Apollo struct {
// contains filtered or unexported fields
}
func (*Apollo) CheckTx ¶
func (a *Apollo) CheckTx(txHash serialization.TransactionId, checkInterval int) chan bool
func (*Apollo) DatumOf ¶
func (a *Apollo) DatumOf(utxo UTxO.UTxO) *PlutusData.PlutusData
func (*Apollo) SetWalletFromMnemonic ¶
func (*Apollo) SetWalletFromPrivateKeyBytes ¶
func (*Apollo) SetWalletFromPrivateKeyHex ¶
func (*Apollo) SwitchBackend ¶
func (a *Apollo) SwitchBackend(backend apollotypes.Backend) *Apollo
func (*Apollo) SwitchNetwork ¶
type ApolloTransaction ¶
type ApolloTransaction struct { Apollo *Apollo Tx Transaction.Transaction }
func (*ApolloTransaction) Sign ¶
func (tx *ApolloTransaction) Sign() *ApolloTransaction
func (*ApolloTransaction) Submit ¶
func (tx *ApolloTransaction) Submit()
Click to show internal directories.
Click to hide internal directories.