This issue occurs when executing the swap method in the SDK on the BNB chain. It does not occur on Base. I used the SDK example method in the document.
Preparing transaction...
Transaction details: {
to: '0x6015126d7D23648C2e4466693b8DeaB005ffaba8',
value: '0',
nonce: 1,
gasLimit: '1012500',
maxFeePerGas: '0',
maxPriorityFeePerGas: '15000000000'
}
Sending transaction...
Transaction attempt 1 failed: priorityFee cannot be more than maxFee (value={ "accessList": [ ], "chainId": "56", "data": "0xb80c2f090000000000000000000000000000000000000000000000000000000000032bb100000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000d82544bf0dfe8385ef8fa34d67e6e4940cc63e16000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000020380c3a54fc7f0000000000000000000000000000000000000000000000000000000068c78e700000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000000000000000000000000000000000000000000010000000000000000000000007a7ad9aa93cd0a2d0255326e5fb145cec14997ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000007a7ad9aa93cd0a2d0255326e5fb145cec14997ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000002710f5ffdca301d3b2a0f4b3de313e4a176515d9bdbf0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000d82544bf0dfe8385ef8fa34d67e6e4940cc63e160000000000000000000000000000000000000000000000000000000000000000", "gasLimit": "1012500", "gasPrice": null, "maxFeePerGas": "0", "maxPriorityFeePerGas": "15000000000", "nonce": 1, "sig": null, "to": "0x6015126d7D23648C2e4466693b8DeaB005ffaba8", "type": 2, "value": "0" }, code=BAD_DATA, version=6.15.0)
This issue occurs when executing the swap method in the SDK on the BNB chain. It does not occur on Base. I used the SDK example method in the document.
Preparing transaction...
Transaction details: {
to: '0x6015126d7D23648C2e4466693b8DeaB005ffaba8',
value: '0',
nonce: 1,
gasLimit: '1012500',
maxFeePerGas: '0',
maxPriorityFeePerGas: '15000000000'
}
Sending transaction...
Transaction attempt 1 failed: priorityFee cannot be more than maxFee (value={ "accessList": [ ], "chainId": "56", "data": "0xb80c2f090000000000000000000000000000000000000000000000000000000000032bb100000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000d82544bf0dfe8385ef8fa34d67e6e4940cc63e16000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000020380c3a54fc7f0000000000000000000000000000000000000000000000000000000068c78e700000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000000000000000000000000000000000000000000010000000000000000000000007a7ad9aa93cd0a2d0255326e5fb145cec14997ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000007a7ad9aa93cd0a2d0255326e5fb145cec14997ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000002710f5ffdca301d3b2a0f4b3de313e4a176515d9bdbf0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000d82544bf0dfe8385ef8fa34d67e6e4940cc63e160000000000000000000000000000000000000000000000000000000000000000", "gasLimit": "1012500", "gasPrice": null, "maxFeePerGas": "0", "maxPriorityFeePerGas": "15000000000", "nonce": 1, "sig": null, "to": "0x6015126d7D23648C2e4466693b8DeaB005ffaba8", "type": 2, "value": "0" }, code=BAD_DATA, version=6.15.0)