MCPcopy Create free account

hub / github.com/Bitrue-exchange/libada-go / functions

Functions125 in github.com/Bitrue-exchange/libada-go

↓ 14 callersFunctionNewAssetName
(b []byte)
assets.go:50
↓ 8 callersFunctionDecodeAddress
DecodeAddress decode humanable address it should be invalid if you get an error for an exchange, you should also check address network and address typ
address.go:56
↓ 8 callersMethodString
Readable and humanable string
address.go:36
↓ 7 callersFunctionMustDecodeAddress
(raw string)
address.go:45
↓ 7 callersFunctionMustInput
(txid string, index uint32)
tx_input.go:22
↓ 6 callersMethodBytes
Raw bytes for transaction outputs
address.go:34
↓ 6 callersMethodGetNetwork
address network
address.go:42
↓ 6 callersMethodKind
address kind
address.go:40
↓ 6 callersFunctionMustOutput
(addr string, amount uint64)
tx_output.go:28
↓ 5 callersFunctionBlake2b224
(raw []byte)
hash.go:8
↓ 4 callersFunctionDecode
(s string)
internal/bech32/bech32.go:118
↓ 4 callersFunctionEncode
(hrp string, data []byte)
internal/bech32/bech32.go:85
↓ 4 callersFunctionNewOutput
(addr Address, amount uint64)
tx_output.go:16
↓ 4 callersFunctionParseAssetId
(assetId string)
assets.go:19
↓ 4 callersFunctionVariableNatDecode
(bytes []byte)
pointer_address.go:35
↓ 4 callersFunctionVariableNatEncode
(n uint64)
pointer_address.go:22
↓ 3 callersMethodAddAsset
AddAsset appends asset and asset amount to Outputs
tx_output.go:49
↓ 3 callersMethodHash
Hash returns message to sign
tx.go:81
↓ 3 callersFunctionNewSimpleLegacyAddress
(xpub []byte, networks ...uint32)
legacy_address.go:24
↓ 2 callersMethodAddInputs
AddInputs add inputs to tx
tx.go:33
↓ 2 callersMethodAddOutputs
AddInputs add outputs to tx
tx.go:39
↓ 2 callersMethodBytes
()
reward_address.go:13
↓ 2 callersMethodBytes
()
base_address.go:14
↓ 2 callersMethodBytes
()
pointer_address.go:49
↓ 2 callersMethodBytes
()
enterprise_address.go:33
↓ 2 callersFunctionDecodeRawAddress
DecodeRawAddresss decodes raw address bytes it decode raw address in tx output, you may don't need it
address.go:84
↓ 2 callersMethodMinAdaRequired
MinAdaRequired computes required ada for this output learn more at https://docs.cardano.org/native-tokens/minimum-ada-value-requirement
tx_output.go:165
↓ 2 callersFunctionMustOutputWithAssets
(addr string, amount uint64, assetId string, tokenAmount uint64)
tx_output.go:36
↓ 2 callersFunctionNewBootstrapWitness
(addr *LegacyAddress, xpub, sig []byte)
witness.go:38
↓ 2 callersFunctionNewEnterpriseAddress
NewEnterpriseAddress creates Enterprise type address with public key the pubkey param can be pubkeyHash or 32 bytes pubkey or 64 bytes xpub
enterprise_address.go:15
↓ 2 callersFunctionNewKeysStakeCred
(d []byte)
stake_credential.go:19
↓ 2 callersFunctionNewKeysWitness
(vkey, sign []byte)
witness.go:22
↓ 2 callersFunctionNewTx
NewTx creates new Tx
tx.go:18
↓ 2 callersMethodProtocolMagic
()
networks.go:17
↓ 2 callersMethodSetFee
SetFee sets fee for tx
tx.go:57
↓ 2 callersMethodSetInvalidAfter
SetInvalidAfter sets InvalidAfter for tx
tx.go:51
↓ 2 callersFunctionSha3AndBlake2b224
(raw []byte)
hash.go:14
↓ 2 callersMethodString
()
base_address.go:22
↓ 2 callersFunctionconvertBits
(data []byte, frombits, tobits byte, pad bool)
internal/bech32/bech32.go:57
↓ 2 callersFunctionhrpExpand
(hrp string)
internal/bech32/bech32.go:28
↓ 2 callersFunctionpolymod
(values []byte)
internal/bech32/bech32.go:12
↓ 2 callersFunctionquot
(a, b int)
tx_output.go:155
↓ 1 callersMethodAddBootstrapWitness
AddBootstrapWitness adds witness for legacy(Byron) address
tx.go:69
↓ 1 callersMethodAddKeyWitness
AddKeyWitness adds witness for Shelly address
tx.go:63
↓ 1 callersMethodBytes
Bytes returns raw transaction bytes, it can submmit by cardano-graphql
tx.go:75
↓ 1 callersMethodBytes
()
tx_body.go:17
↓ 1 callersMethodBytes
()
legacy_address.go:105
↓ 1 callersMethodID
ID returns tx hash(AKA txid)
tx.go:88
↓ 1 callersMethodMarshalCBOR
()
legacy_address.go:51
↓ 1 callersMethodMustAddAsset
(assetId string, tokenAmount uint64)
tx_output.go:82
↓ 1 callersFunctionMustParseAssetId
(assetId string)
assets.go:37
↓ 1 callersFunctionNewAsset
(policyId [28]byte, name AssetName)
assets.go:15
↓ 1 callersFunctionNewInput
(txid string, index uint32)
tx_input.go:14
↓ 1 callersFunctionNewKeyedEnterpriseAddress
(key []byte, network Network)
enterprise_address.go:29
↓ 1 callersFunctionNewOutputWithAsset
(addr Address, amount uint64, token *Asset, tokenAmount uint64)
tx_output.go:20
↓ 1 callersMethodPrefix
()
reward_address.go:40
↓ 1 callersMethodPrefix
()
base_address.go:42
↓ 1 callersMethodPrefix
()
pointer_address.go:80
↓ 1 callersMethodPrefix
()
enterprise_address.go:60
↓ 1 callersMethodPrefix
Bech32 prefix, and empty for legacy address
address.go:38
↓ 1 callersMethodSetInvalidBefore
SetInvalidBefore sets InvalidBefore for tx
tx.go:45
↓ 1 callersMethodSetMinAda
SetMinAda sets min ada required
tx_output.go:150
↓ 1 callersMethodString
()
enterprise_address.go:40
↓ 1 callersMethodString
()
assets.go:75
↓ 1 callersFunctioncreateChecksum
(hrp string, data []byte)
internal/bech32/bech32.go:45
↓ 1 callersFunctionnewHashedSpending
(xpub []byte, attr LegacyAddressAttribute)
legacy_address.go:36
↓ 1 callersFunctionroundupBytes2Words
(b int)
tx_output.go:159
↓ 1 callersFunctionverifyChecksum
(hrp string, data []byte)
internal/bech32/bech32.go:41
MethodAddAmount
AddAmount adds ADA for Output
tx_output.go:71
MethodAddAssetMap
AddAssetMap copys raw asset to outputs
tx_output.go:62
FunctionExampleDecodeAddress
()
address_example_test.go:5
FunctionExampleNewTx
()
tx_example_test.go:11
MethodGetNetwork
()
reward_address.go:36
MethodGetNetwork
()
base_address.go:38
MethodGetNetwork
()
pointer_address.go:76
MethodGetNetwork
()
enterprise_address.go:56
MethodGetNetwork
()
legacy_address.go:118
MethodId
()
networks.go:13
MethodKind
()
reward_address.go:25
MethodKind
()
base_address.go:27
MethodKind
()
pointer_address.go:65
MethodKind
()
enterprise_address.go:45
MethodKind
()
legacy_address.go:110
MethodMarshalCBOR
()
tx_output.go:90
MethodMarshalCBOR
()
reward_address.go:29
MethodMarshalCBOR
()
witness.go:61
MethodMarshalCBOR
()
base_address.go:31
MethodMarshalCBOR
()
pointer_address.go:69
MethodMarshalCBOR
()
enterprise_address.go:49
MethodMarshalCBOR
()
legacy_address_attribute.go:15
MethodMarshalCBOR
()
assets.go:59
MethodPrefix
()
legacy_address.go:125
MethodSetAmount
SetAmount sets amount for Output
tx_output.go:77
MethodString
()
reward_address.go:20
MethodString
()
addresskind_string.go:22
MethodString
()
network_string.go:21
MethodString
()
pointer_address.go:60
MethodString
()
legacy_address.go:114
FunctionTestAssetIdByRaw
(t *testing.T)
assets_test.go:8
FunctionTestAssetName_String
(t *testing.T)
assets_test.go:48
next →1–100 of 125, ranked by callers