Skip to content

Osmosis: Unable to query MsgCreatePool transaction #17

@itsciccio

Description

@itsciccio

Using main.go, I am trying to query block 3513 from an Osmosis Archive Node. Although I am able to retrieve the block, I am unable to retrieve the transactions with the following error message:

rpc error: code = Unknown desc = unable to resolve type URL /osmosis.gamm.v1beta1.MsgCreatePool: tx parse error: unknown request

I have also attempted to add the following lines to the MakeCodec function, with the hopes of the system being able to recognize the MsgCreatePool transaction, however had no luck:

func MakeCodec(moduleBasics []module.AppModuleBasic) Codec {
	modBasic := module.NewBasicManager(moduleBasics...)
	encodingConfig := MakeCodecConfig()
	std.RegisterLegacyAminoCodec(encodingConfig.Amino)
	std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
	modBasic.RegisterLegacyAminoCodec(encodingConfig.Amino)
	modBasic.RegisterInterfaces(encodingConfig.InterfaceRegistry)
 --->   RegisterOsmosisInterfaces(encodingConfig.InterfaceRegistry)
 --->   RegisterTendermintLiquidityInterfaces(encodingConfig.Amino, encodingConfig.InterfaceRegistry)

	return encodingConfig
}

Is there something I am doing incorrectly, or is this a bug?

NB: Querying other blocks not containing this transaction type works as intended.

TIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions