Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bitrue-exchange/libada-go
/ functions
Functions
125 in github.com/Bitrue-exchange/libada-go
⨍
Functions
125
◇
Types & classes
33
↓ 14 callers
Function
NewAssetName
(b []byte)
assets.go:50
↓ 8 callers
Function
DecodeAddress
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 callers
Method
String
Readable and humanable string
address.go:36
↓ 7 callers
Function
MustDecodeAddress
(raw string)
address.go:45
↓ 7 callers
Function
MustInput
(txid string, index uint32)
tx_input.go:22
↓ 6 callers
Method
Bytes
Raw bytes for transaction outputs
address.go:34
↓ 6 callers
Method
GetNetwork
address network
address.go:42
↓ 6 callers
Method
Kind
address kind
address.go:40
↓ 6 callers
Function
MustOutput
(addr string, amount uint64)
tx_output.go:28
↓ 5 callers
Function
Blake2b224
(raw []byte)
hash.go:8
↓ 4 callers
Function
Decode
(s string)
internal/bech32/bech32.go:118
↓ 4 callers
Function
Encode
(hrp string, data []byte)
internal/bech32/bech32.go:85
↓ 4 callers
Function
NewOutput
(addr Address, amount uint64)
tx_output.go:16
↓ 4 callers
Function
ParseAssetId
(assetId string)
assets.go:19
↓ 4 callers
Function
VariableNatDecode
(bytes []byte)
pointer_address.go:35
↓ 4 callers
Function
VariableNatEncode
(n uint64)
pointer_address.go:22
↓ 3 callers
Method
AddAsset
AddAsset appends asset and asset amount to Outputs
tx_output.go:49
↓ 3 callers
Method
Hash
Hash returns message to sign
tx.go:81
↓ 3 callers
Function
NewSimpleLegacyAddress
(xpub []byte, networks ...uint32)
legacy_address.go:24
↓ 2 callers
Method
AddInputs
AddInputs add inputs to tx
tx.go:33
↓ 2 callers
Method
AddOutputs
AddInputs add outputs to tx
tx.go:39
↓ 2 callers
Method
Bytes
()
reward_address.go:13
↓ 2 callers
Method
Bytes
()
base_address.go:14
↓ 2 callers
Method
Bytes
()
pointer_address.go:49
↓ 2 callers
Method
Bytes
()
enterprise_address.go:33
↓ 2 callers
Function
DecodeRawAddress
DecodeRawAddresss decodes raw address bytes it decode raw address in tx output, you may don't need it
address.go:84
↓ 2 callers
Method
MinAdaRequired
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 callers
Function
MustOutputWithAssets
(addr string, amount uint64, assetId string, tokenAmount uint64)
tx_output.go:36
↓ 2 callers
Function
NewBootstrapWitness
(addr *LegacyAddress, xpub, sig []byte)
witness.go:38
↓ 2 callers
Function
NewEnterpriseAddress
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 callers
Function
NewKeysStakeCred
(d []byte)
stake_credential.go:19
↓ 2 callers
Function
NewKeysWitness
(vkey, sign []byte)
witness.go:22
↓ 2 callers
Function
NewTx
NewTx creates new Tx
tx.go:18
↓ 2 callers
Method
ProtocolMagic
()
networks.go:17
↓ 2 callers
Method
SetFee
SetFee sets fee for tx
tx.go:57
↓ 2 callers
Method
SetInvalidAfter
SetInvalidAfter sets InvalidAfter for tx
tx.go:51
↓ 2 callers
Function
Sha3AndBlake2b224
(raw []byte)
hash.go:14
↓ 2 callers
Method
String
()
base_address.go:22
↓ 2 callers
Function
convertBits
(data []byte, frombits, tobits byte, pad bool)
internal/bech32/bech32.go:57
↓ 2 callers
Function
hrpExpand
(hrp string)
internal/bech32/bech32.go:28
↓ 2 callers
Function
polymod
(values []byte)
internal/bech32/bech32.go:12
↓ 2 callers
Function
quot
(a, b int)
tx_output.go:155
↓ 1 callers
Method
AddBootstrapWitness
AddBootstrapWitness adds witness for legacy(Byron) address
tx.go:69
↓ 1 callers
Method
AddKeyWitness
AddKeyWitness adds witness for Shelly address
tx.go:63
↓ 1 callers
Method
Bytes
Bytes returns raw transaction bytes, it can submmit by cardano-graphql
tx.go:75
↓ 1 callers
Method
Bytes
()
tx_body.go:17
↓ 1 callers
Method
Bytes
()
legacy_address.go:105
↓ 1 callers
Method
ID
ID returns tx hash(AKA txid)
tx.go:88
↓ 1 callers
Method
MarshalCBOR
()
legacy_address.go:51
↓ 1 callers
Method
MustAddAsset
(assetId string, tokenAmount uint64)
tx_output.go:82
↓ 1 callers
Function
MustParseAssetId
(assetId string)
assets.go:37
↓ 1 callers
Function
NewAsset
(policyId [28]byte, name AssetName)
assets.go:15
↓ 1 callers
Function
NewInput
(txid string, index uint32)
tx_input.go:14
↓ 1 callers
Function
NewKeyedEnterpriseAddress
(key []byte, network Network)
enterprise_address.go:29
↓ 1 callers
Function
NewOutputWithAsset
(addr Address, amount uint64, token *Asset, tokenAmount uint64)
tx_output.go:20
↓ 1 callers
Method
Prefix
()
reward_address.go:40
↓ 1 callers
Method
Prefix
()
base_address.go:42
↓ 1 callers
Method
Prefix
()
pointer_address.go:80
↓ 1 callers
Method
Prefix
()
enterprise_address.go:60
↓ 1 callers
Method
Prefix
Bech32 prefix, and empty for legacy address
address.go:38
↓ 1 callers
Method
SetInvalidBefore
SetInvalidBefore sets InvalidBefore for tx
tx.go:45
↓ 1 callers
Method
SetMinAda
SetMinAda sets min ada required
tx_output.go:150
↓ 1 callers
Method
String
()
enterprise_address.go:40
↓ 1 callers
Method
String
()
assets.go:75
↓ 1 callers
Function
createChecksum
(hrp string, data []byte)
internal/bech32/bech32.go:45
↓ 1 callers
Function
newHashedSpending
(xpub []byte, attr LegacyAddressAttribute)
legacy_address.go:36
↓ 1 callers
Function
roundupBytes2Words
(b int)
tx_output.go:159
↓ 1 callers
Function
verifyChecksum
(hrp string, data []byte)
internal/bech32/bech32.go:41
Method
AddAmount
AddAmount adds ADA for Output
tx_output.go:71
Method
AddAssetMap
AddAssetMap copys raw asset to outputs
tx_output.go:62
Function
ExampleDecodeAddress
()
address_example_test.go:5
Function
ExampleNewTx
()
tx_example_test.go:11
Method
GetNetwork
()
reward_address.go:36
Method
GetNetwork
()
base_address.go:38
Method
GetNetwork
()
pointer_address.go:76
Method
GetNetwork
()
enterprise_address.go:56
Method
GetNetwork
()
legacy_address.go:118
Method
Id
()
networks.go:13
Method
Kind
()
reward_address.go:25
Method
Kind
()
base_address.go:27
Method
Kind
()
pointer_address.go:65
Method
Kind
()
enterprise_address.go:45
Method
Kind
()
legacy_address.go:110
Method
MarshalCBOR
()
tx_output.go:90
Method
MarshalCBOR
()
reward_address.go:29
Method
MarshalCBOR
()
witness.go:61
Method
MarshalCBOR
()
base_address.go:31
Method
MarshalCBOR
()
pointer_address.go:69
Method
MarshalCBOR
()
enterprise_address.go:49
Method
MarshalCBOR
()
legacy_address_attribute.go:15
Method
MarshalCBOR
()
assets.go:59
Method
Prefix
()
legacy_address.go:125
Method
SetAmount
SetAmount sets amount for Output
tx_output.go:77
Method
String
()
reward_address.go:20
Method
String
()
addresskind_string.go:22
Method
String
()
network_string.go:21
Method
String
()
pointer_address.go:60
Method
String
()
legacy_address.go:114
Function
TestAssetIdByRaw
(t *testing.T)
assets_test.go:8
Function
TestAssetName_String
(t *testing.T)
assets_test.go:48
next →
1–100 of 125, ranked by callers